Skip to content

Commit 751304c

Browse files
committed
chore: add workflow dispatch
1 parent ff05742 commit 751304c

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/publish-migrations.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Release Migrations
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- develop
@@ -32,15 +33,3 @@ jobs:
3233
run: aws s3 sync migrations/db s3://$AWS_S3_BUCKET/migrations/db --delete
3334
env:
3435
AWS_S3_BUCKET: ${{ secrets.PG_INIT_SCRIPT_S3_BUCKET_STAGING }}
35-
36-
- name: configure aws credentials - prod
37-
uses: aws-actions/configure-aws-credentials@v1
38-
with:
39-
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
40-
aws-region: "ap-southeast-1"
41-
42-
- name: Deploy to S3 prod
43-
shell: bash
44-
run: aws s3 sync migrations/db s3://$AWS_S3_BUCKET/migrations/db --delete
45-
env:
46-
AWS_S3_BUCKET: ${{ secrets.PG_INIT_SCRIPT_S3_BUCKET_PROD }}

0 commit comments

Comments
 (0)