forked from fastenhealth/fasten-onprem
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.33 KB
/
cloud-deploy.yaml
File metadata and controls
49 lines (44 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Cloud-Deploy
on:
push:
branches: [ main ]
# # Publish semver tags as releases.
release:
types: [published]
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
deployments: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20.x
- uses: actions/setup-go@v3
with:
go-version: '1.21.1'
- run: go version
- run: |
make dep-frontend
cd frontend
yarn run build -- --configuration cloud_sandbox --output-path=../dist
- name: Configure AWS credentials using delegated access
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::410145376638:role/fasten-sandbox-app-gh-frontend-deploy-role
aws-region: us-east-1
- name: Copy files to the test website with the AWS CLI
run: |
aws s3 sync dist s3://app-sandbox.fastenhealth.com --acl public-read
- uses: chrnorm/deployment-action@v2
name: Create GitHub deployment
id: deployment
with:
token: '${{ github.token }}'
environment-url: https://app-sandbox.fastenhealth.com/
environment: sandbox
initial-status: success