diff --git a/.github/workflows/generate-docs.yml b/.github/workflows/generate-docs.yml index 7f305b21..6e04dc00 100644 --- a/.github/workflows/generate-docs.yml +++ b/.github/workflows/generate-docs.yml @@ -15,19 +15,18 @@ jobs: with: node-version: '14' - - name: Merge master -> gh-pages - uses: devmasx/merge-branch@v1.3.1 - 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 github-actions@github.com + 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 @@ -47,8 +46,6 @@ jobs: - name: Commit changes run: | - git config user.name github-actions - git config user.email github-actions@github.com git add . git commit -m "Generated docs"