Skip to content

Commit 1643456

Browse files
Copilotrajbos
andcommitted
Revert deploy-to-pages.yml to original state with push trigger for all branches
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent a875c70 commit 1643456

1 file changed

Lines changed: 13 additions & 5 deletions

File tree

.github/workflows/deploy-to-pages.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
name: Deploy to GitHub Pages
22

33
on:
4-
# Runs on pushes to main branch for deployment (only when code changes)
4+
# Runs on pushes to any branch to validate build (only when code changes)
55
push:
6-
branches: [ main ]
6+
paths-ignore:
7+
- '**.md'
8+
- 'LICENSE'
9+
- 'SECURITY.md'
10+
11+
# Runs on pull requests to validate build (only when code changes)
12+
pull_request:
713
paths-ignore:
814
- '**.md'
915
- 'LICENSE'
@@ -18,9 +24,9 @@ permissions:
1824
pages: write
1925
id-token: write
2026

21-
# Allow only one concurrent deployment
27+
# Allow only one concurrent deployment per branch
2228
concurrency:
23-
group: "pages-deployment"
29+
group: "pages-${{ github.head_ref || github.ref }}"
2430
cancel-in-progress: true
2531

2632
jobs:
@@ -51,8 +57,10 @@ jobs:
5157
with:
5258
path: './dist'
5359

54-
# Deployment job - only runs on main branch
60+
# Deployment job
5561
deploy:
62+
# Only deploy on main branch
63+
# if: github.ref == 'refs/heads/main'
5664
environment:
5765
name: github-pages
5866
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)