mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-18 12:11:44 +00:00
Let's try this oen
This commit is contained in:
@@ -17,11 +17,23 @@ jobs:
|
|||||||
- name: Checkout charts repo
|
- name: Checkout charts repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Merge to leanpub-preview branch
|
- name: Checkout latest leanpub-preview branch
|
||||||
uses: devmasx/merge-branch@v1.1.0
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
repository: ${{ env.GITHUB_PAGES_REPO }}
|
||||||
|
ref: leanpub-preview
|
||||||
|
path: leanpub-preview
|
||||||
|
|
||||||
|
- name: Replace contents of leanpub-preview branch
|
||||||
|
run: |
|
||||||
|
rm -rf leanpub-preview/*
|
||||||
|
cp -rf * leanpub-preview/
|
||||||
|
cd leanpub-preview
|
||||||
|
./scripts/markdown-to-markua.sh
|
||||||
|
|
||||||
|
- name: Push changes
|
||||||
|
uses: ad-m/github-push-action@master
|
||||||
with:
|
with:
|
||||||
type: now
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
target_branch: 'leanpub-preview'
|
directory: leanpub-preview
|
||||||
env:
|
branch: leanpub-preview
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user