-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.79 KB
/
main.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
48
49
50
51
52
53
54
55
56
57
58
name: Publish Main
on:
- workflow_dispatch
jobs:
pipeline:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: main
- name: '[INSTALL] | Install Dependencies'
run: npm install
shell: bash
- name: '[BUILD] | Build'
run: npm run build
shell: bash
- name: '[ACTION] | Clone publish s3 action'
uses: actions/checkout@v3
with:
repository: heronlabs/publish-s3-action
ref: 5.0.0
token: ${{ secrets.AUTHOR_PERSONAL_ACCESS }}
path: ./publish-s3-action
- name: '[ACTION] | Run publish s3 action'
uses: './publish-s3-action/application/github'
with:
BUILD_FOLDER: build
BUCKET_NAME: admin.senoritascc.com.br
AWS_REGION: ${{ secrets.AWS_REGION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_ROLE_TO_ASSUME }}
AWS_ROLE_DURATION_SECONDS: 3600
- name: '[ACTION] | Clone publish Cloudfront action'
uses: actions/checkout@v3
with:
repository: heronlabs/publish-cloudfront-action
ref: 1.0.0
token: ${{ secrets.AUTHOR_PERSONAL_ACCESS}}
path: ./publish-cloudfront-action
- name: '[ACTION] | Run publish Cloudfront action'
uses: './publish-cloudfront-action/application/github'
with:
DISTRIBUTION_ID: EIU0HEHX6R3JD
AWS_REGION: ${{ secrets.AWS_REGION}}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID}}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
AWS_ROLE_TO_ASSUME: ${{ secrets.AWS_ROLE_TO_ASSUME}}
AWS_ROLE_DURATION_SECONDS: 3600