Skip to content

Commit

Permalink
fixed docs generator action
Browse files Browse the repository at this point in the history
  • Loading branch information
forntoh committed Apr 30, 2021
1 parent e998a85 commit e435889
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
with:
node-version: '14'

- name: Merge master -> gh-pages
uses: devmasx/[email protected]
with:
type: now
from_branch: master
target_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout gh-pages branch
uses: actions/checkout@v2
with:
ref: gh-pages

- name: Merge master -> gh-pages
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch origin
git merge origin/master --strategy-option theirs --allow-unrelated-histories
- name: Add examples to docs
run: |
for FILE in examples/*/*.md; do TMP=$FILE; TMP=${TMP//examples\//}; TMP=${TMP//\/README/}; cp $FILE 'docs/examples/'"$TMP"; done
Expand All @@ -47,8 +46,6 @@ jobs:
- name: Commit changes
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Generated docs"
Expand Down

0 comments on commit e435889

Please sign in to comment.