Skip to content

Commit

Permalink
ci: Add docs workflow on pr (keep-starknet-strange#107)
Browse files Browse the repository at this point in the history
* add docs workflow on pr

* missing bracket
  • Loading branch information
d-roak authored Nov 7, 2023
1 parent 747dc4a commit d2a2037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Docs
on:
push:
branches: [main]
pull_request:

jobs:
docs:
Expand All @@ -19,7 +20,7 @@ jobs:
run: zig test -femit-docs=./docsite src/lib.zig

- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }} && steps.check_changes.outcome == 'success'
if: ${{github.event_name == 'push'}} && ${{ github.ref == 'refs/heads/main' }} && steps.check_changes.outcome == 'success'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit d2a2037

Please sign in to comment.