Skip to content

Commit 9fd2b03

Browse files
authored
Merge pull request #33 from PythonMexico/migrate/github-pages-to-s3
chore: ✨ add commit linting step to validate commit messages in stagi…
2 parents aa70863 + 3e7bd41 commit 9fd2b03

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/deploy-staging.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,31 @@ name: Deploy to Staging (AWS S3 + CloudFront)
33
on:
44
push:
55
branches: [ develop, staging ]
6-
workflow_dispatch: # Allow manual trigger
76

87
permissions:
98
contents: read
109
id-token: write # Required for AWS OIDC authentication
1110

1211

1312
jobs:
13+
14+
commit_lint:
15+
name: Validate Commit Messages
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Validate PR Title
23+
uses: wagoid/commitlint-github-action@v5
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
configFile: .commitlintrc.json
1428
build-and-deploy-staging:
1529
name: Build and Deploy to Staging
30+
needs: commit_lint
1631
runs-on: ubuntu-latest
1732
environment:
1833
name: aws-stag

0 commit comments

Comments
 (0)