Skip to content

Commit

Permalink
Run gh-pages only on main
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Jylhä committed Nov 22, 2022
1 parent ae20491 commit ec266f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "**" ]
workflow_dispatch:

Expand Down Expand Up @@ -37,10 +36,13 @@ jobs:
run: docker-compose run runner bash -c "cd /workdir && chmod +x ./_genonce.sh && ./_genonce.sh"
- name: Setup Pages
uses: actions/configure-pages@v2
if: github.ref == 'refs/heads/main'
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
if: github.ref == 'refs/heads/main'
with:
path: './output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v1
if: github.ref == 'refs/heads/main'

0 comments on commit ec266f9

Please sign in to comment.