We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c566016 commit e3afef7Copy full SHA for e3afef7
1 file changed
.github/workflows/deploy-staging.yml
@@ -3,16 +3,31 @@ name: Deploy to Staging (AWS S3 + CloudFront)
3
on:
4
push:
5
branches: [ develop, staging ]
6
- workflow_dispatch: # Allow manual trigger
7
8
permissions:
9
contents: read
10
id-token: write # Required for AWS OIDC authentication
11
12
13
jobs:
+
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
27
+ configFile: .commitlintrc.json
28
build-and-deploy-staging:
29
name: Build and Deploy to Staging
30
+ needs: commit_lint
31
runs-on: ubuntu-latest
32
environment:
33
name: aws-stag
0 commit comments