Skip to content

Commit

Permalink
run build of github pages on pullRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
Villaquiranm committed Jan 24, 2025
1 parent f67f186 commit a254218
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -41,7 +44,7 @@ jobs:
path: ./pages_output

deploy:
if: ${{ github.repository == 'gnolang/gno' }} # Alternatively, validate based on provided tokens and permissions.
if: ${{ github.repository == 'gnolang/gno' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
runs-on: ubuntu-latest
environment:
name: github-pages
Expand Down

0 comments on commit a254218

Please sign in to comment.