Skip to content

Commit

Permalink
docs: deploy docs when “main” pushed (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloyx authored Jun 20, 2024
1 parent d5eddb5 commit f5a2f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docs-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ jobs:
run: yarn build

- name: Upload Build Artifact
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build

deploy-doc:
name: Deploy to GitHub Pages
needs: [build-doc]
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
if: github.event_name != 'pull_request'
runs-on: ubuntu-22.04
defaults:
run:
Expand All @@ -66,4 +66,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit f5a2f91

Please sign in to comment.