-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (49 loc) · 1.23 KB
/
s3_lsd_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
48
49
50
51
52
53
54
55
name: S3 deploy
on:
push:
branches:
- lsd
- language
- finish
pull_request:
branches:
- lsd
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Node
uses: actions/setup-node@v1
with:
node-version: 14
- name: Checkout code
uses: actions/checkout@v2
- name: Install deps
run: npm install
- name: Build
run: npm run dev
- name: lsd
run: mv ./dist/index.html ./dist/index2.html
- name: Upload build result
uses: actions/upload-artifact@v1
with:
name: dist
path: ./dist
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@master
- name: Download build
uses: actions/download-artifact@v1
with:
name: dist
- name: Upload to hotbox
uses: jakejarvis/s3-sync-action@master
with:
args: --endpoint-url https://hb.bizmrg.com --acl public-read --follow-symlinks
env:
AWS_S3_BUCKET: music_app
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'dist'