-
-
Notifications
You must be signed in to change notification settings - Fork 34
47 lines (37 loc) · 1.2 KB
/
deploy.yml
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
# name: Build and Deploy
# on:
# workflow_call:
# inputs:
# APP_NAME:
# required: true
# type: string
# BUCKET:
# required: true
# type: string
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 19
# - uses: pnpm/action-setup@v2
# with:
# version: 8
# - name: Install Dependencies
# run: pnpm install
# - name: Build
# run: pnpm generate --filter=${{ inputs.APP_NAME }}
# - name: Configure AWS Credentials
# uses: aws-actions/configure-aws-credentials@v2
# with:
# aws-region: sa-east-1
# role-to-assume: arn:aws:iam::928571631969:role/gh-actions-menthorlabs-menthor
# - name: Install AWS CLI
# id: install-aws-cli
# uses: unfor19/install-aws-cli-action@master
# - name: Push to S3
# run: aws s3 cp apps/${{ inputs.APP_NAME }}/dist ${{ inputs.BUCKET }} --recursive
# - name: Invalidate CloudFront
# run: aws cloudfront create-invalidation --distribution-id E2B0K34D9WKXHA --paths "/*"