-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (52 loc) · 1.68 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
name: Updates web application
on:
push:
branches:
- dev
- master
jobs:
deploy-website-source-files:
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: upload-webpack-artifacts
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{secrets.PERSISTANT_STORAGE_ID}}
AWS_DEFAULT_REGION: 'us-east-1'
AWS_S3_BUCKET_NAME: 'ryanrigato.com'
AWS_SECRET_ACCESS_KEY: ${{secrets.PERSISTANT_STORAGE_KEY}}
run: '../.github/scripts/homepage_source_files.sh'
publish-commit-artifact:
needs: deploy-website-source-files
runs-on: ubuntu-latest
name: favicon to s3 bucket
env:
ORCHESTRATION_SCRIPT: './.github/scripts/orchestrate_artifacts.sh'
steps:
- name: checkout-current-branch
uses: actions/checkout@v3
- name: script-execution-permissions
run: chmod +x ${{env.ORCHESTRATION_SCRIPT}}
- name: upload-favicon-artifacts
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{secrets.PERSISTANT_STORAGE_ID}}
AWS_DEFAULT_OUTPUT: json
AWS_DEFAULT_REGION: 'us-east-1'
AWS_S3_BUCKET_NAME: 'ryanrigato.com'
AWS_SECRET_ACCESS_KEY: ${{secrets.PERSISTANT_STORAGE_KEY}}
run: ${{env.ORCHESTRATION_SCRIPT}}