fix checkout and push

(rebased-with-history from commit 2faff02b1f)
This commit is contained in:
Josh de Leeuw 2024-01-14 17:36:01 -05:00 committed by bjoluc
commit c856e7e504

View File

@ -39,16 +39,14 @@ jobs:
- name: Deploy docs - name: Deploy docs
run: npm run docs:deploy ${{ env.version_major_minor }} run: npm run docs:deploy ${{ env.version_major_minor }}
- name: Checkout gh-docs branch - name: Switch to gh-pages branch
uses: actions/checkout@v2 run: git checkout gh-pages
with:
ref: gh-docs
- name: Push gh-docs branch - name: Push gh-pages branch
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-docs branch: gh-pages
force: true force: true