-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (62 loc) · 2.02 KB
/
homepage_update.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Updates web application
on:
push:
branches:
- master
jobs:
deploy-website-source-files:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
name: web source files to s3
defaults:
run:
working-directory: ./static
steps:
- name: checkout-current-branch
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run test
- run: npm run build
- name: script-execution-permissions
run: chmod +x '../.github/scripts/homepage_source_files.sh'
- name: assume-github-actions-role
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: ${{vars.REGION_NAME}}
role-to-assume: arn:aws:iam::${{secrets.AWS_ACCOUNT_ID}}:role/${{secrets.PIPELINE_ROLE_NAME}}
- name: upload-webpack-artifacts
shell: bash
env:
AWS_DEFAULT_REGION: ${{vars.REGION_NAME}}
run: '../.github/scripts/homepage_source_files.sh'
publish-commit-artifact:
needs: deploy-website-source-files
name: favicon to s3 bucket
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: checkout-current-branch
uses: actions/checkout@v3
- name: script-execution-permissions
run: chmod +x ./.github/scripts/orchestrate_artifacts.sh
- name: assume-github-actions-role
uses: aws-actions/configure-aws-credentials@v4
with:
audience: sts.amazonaws.com
aws-region: ${{vars.REGION_NAME}}
role-to-assume: arn:aws:iam::${{secrets.AWS_ACCOUNT_ID}}:role/${{secrets.PIPELINE_ROLE_NAME}}
- name: upload-favicon-artifacts
shell: bash
env:
AWS_DEFAULT_OUTPUT: json
AWS_DEFAULT_REGION: ${{vars.REGION_NAME}}
AWS_S3_BUCKET_NAME: 'ryanrigato.com'
run: ./.github/scripts/orchestrate_artifacts.sh