Skip to content

Commit 2faff02

Browse files
committed
fix checkout and push
1 parent 38682d8 commit 2faff02

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/publish-docs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,14 @@ jobs:
3939
- name: Deploy docs
4040
run: npm run docs:deploy ${{ env.version_major_minor }}
4141

42-
- name: Checkout gh-docs branch
43-
uses: actions/checkout@v2
44-
with:
45-
ref: gh-docs
42+
- name: Switch to gh-pages branch
43+
run: git checkout gh-pages
4644

47-
- name: Push gh-docs branch
45+
- name: Push gh-pages branch
4846
uses: ad-m/github-push-action@master
4947
with:
5048
github_token: ${{ secrets.GITHUB_TOKEN }}
51-
branch: gh-docs
49+
branch: gh-pages
5250
force: true
5351

5452

0 commit comments

Comments
 (0)