Skip to content

Commit 1287205

Browse files
authored
Run on push to main (#43)
1 parent e153d36 commit 1287205

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
# Run when a PR is opened or updated
1414
pull_request:
1515

16+
push:
17+
branches:
18+
- main
19+
1620
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
1721
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
1822
concurrency:
@@ -71,7 +75,7 @@ jobs:
7175
permissions:
7276
pages: write
7377
id-token: write
74-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
78+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
7579
steps:
7680
- name: Setup Pages
7781
uses: actions/configure-pages@v5.0.0

0 commit comments

Comments
 (0)