Skip to content

Commit

Permalink
ci: deployment step
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Feb 20, 2024
1 parent bdb5e3a commit ca08338
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish-doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ jobs:
run: |
cd docs
hugo
- name: Deploy website
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
uses: JamesIves/github-pages-deploy-action@v4.5.0
- name: Deployment
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
branch: docs
folder: docs/public
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
publish_dir: ./docs/public

0 comments on commit ca08338

Please sign in to comment.