Skip to content

Commit c0d41a1

Browse files
authored
Merge pull request #56 from osiux/fix-usage-docs-publish
docs: fix publish to gh-pages
2 parents eb57b38 + 36333ba commit c0d41a1

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
- name: Build
2323
run: npm run build
2424
- name: Publish docs
25-
if: github.ref == 'refs/heads/master'
26-
env:
27-
GIT_PUBLISH_URL: https://${{ secrets.GH_PUBLISH_CREDS }}@github.com/Kitware/react-vtk-js.git
28-
run: |
29-
git config --global user.name "Github Actions"
30-
git config --global user.email "sebastien.jourdain@kitware.com"
31-
npm run deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
if: ${{ github.ref == 'refs/heads/master' }}
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
publish_dir: ./usage/dist
30+
user_name: 'Github Actions'
31+
user_email: 'sebastien.jourdain@kitware.com'
32+
commit_message: ${{ github.event.head_commit.message }}

0 commit comments

Comments
 (0)