1313 cancel-in-progress : false
1414 env :
1515 TRIGGER_ACCESS_TOKEN : ${{ secrets.TRIGGER_ACCESS_TOKEN }}
16- permissions :
17- id-token : write
18- contents : read
1916
2017 steps :
2118 - name : Checkout code
@@ -34,44 +31,12 @@ jobs:
3431 - name : Install dependencies
3532 run : bun install
3633
37- - name : Configure AWS credentials
38- uses : aws-actions/configure-aws-credentials@v4
39- with :
40- role-to-assume : ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_TO_ASSUME || secrets.STAGING_AWS_ROLE_TO_ASSUME }}
41- aws-region : ${{ github.ref == 'refs/heads/main' && secrets.AWS_REGION || secrets.STAGING_AWS_REGION }}
42-
4334 - name : Deploy to Trigger.dev (Staging)
4435 if : github.ref == 'refs/heads/staging'
45- id : deploy-staging
4636 working-directory : ./apps/sim
47- env :
48- TRIGGER_ACCESS_TOKEN : ${{ secrets.TRIGGER_ACCESS_TOKEN }}
49- run : |
50- npx --yes [email protected] deploy -e staging --skip-promotion 51-
52- - name : Store Staging version in Parameter Store
53- if : github.ref == 'refs/heads/staging'
54- run : |
55- aws ssm put-parameter \
56- --name "${{ secrets.TRIGGER_VERSION_SECRET_MANAGER_STAGING }}" \
57- --value "${{ steps.deploy-staging.outputs.deploymentVersion }}" \
58- --type "String" \
59- --overwrite
37+ run :
npx --yes [email protected] deploy -e staging 6038
6139 - name : Deploy to Trigger.dev (Production)
6240 if : github.ref == 'refs/heads/main'
63- id : deploy-production
6441 working-directory : ./apps/sim
65- env :
66- TRIGGER_ACCESS_TOKEN : ${{ secrets.TRIGGER_ACCESS_TOKEN }}
67- run : |
68- npx --yes [email protected] deploy --skip-promotion 69-
70- - name : Store Production version in Parameter Store
71- if : github.ref == 'refs/heads/main'
72- run : |
73- aws ssm put-parameter \
74- --name "${{ secrets.TRIGGER_VERSION_SECRET_MANAGER_PROD }}" \
75- --value "${{ steps.deploy-production.outputs.deploymentVersion }}" \
76- --type "String" \
77- --overwrite
42+ run :
npx --yes [email protected] deploy
0 commit comments