Skip to content

Commit

Permalink
Auto-run on master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bchristie committed Jul 3, 2024
1 parent d885787 commit 081b6b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: Deploy Next.js site to GH-Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
branches: ["master"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -82,6 +82,7 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/master'
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 081b6b3

Please sign in to comment.