File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : DEV - Upload Website
1+ name : Upload Website - Dev
22
33on :
44 push :
5- branches :
6- - dev
5+ branches : [ dev ]
76
87jobs :
98 build :
10- runs-on : ubuntu-16 .04
9+ runs-on : ubuntu-18 .04
1110 strategy :
1211 matrix :
13- node : ["14"]
14- name : Build and Deploy
12+ os : [ubuntu-18.04]
13+ node-version : [10.x, 12.x, 14.x]
14+ name : build & test
1515 steps :
1616 - uses : actions/checkout@v2
17- - name : Installs yarn
18- uses : borales/ actions-yarn@v2.0.0
17+ - name : Installs dependencies
18+ uses : actions/setup-node@v1
1919 with :
20- cmd : install
21- - name : Builds sources
22- uses : borales/actions-yarn@v2.0.0
20+ node-version : ${{ matrix.node-version }}
21+ - run : npm ci
22+ - run : npm run-script build
23+
24+ deploy :
25+ needs : [build]
26+ runs-on : ubuntu-18.04
27+ name : deploy to s3
28+ steps :
29+ - uses : actions/checkout@v2
30+ - name : Installs dependencies
31+ uses : actions/setup-node@v1
2332 with :
24- cmd : build
33+ node-version : ${{ matrix.node-version }}
34+ - run : npm ci
35+ - run : npm run-script build
2536 - name : Deploys sources to s3 bucket
2637 uses : jakejarvis/s3-sync-action@master
2738 with :
Original file line number Diff line number Diff line change 3838 with :
3939 args : --acl public-read --follow-symlinks --delete
4040 env :
41- AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET_DEV }}
41+ AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
4242 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
4343 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4444 AWS_REGION : " eu-central-1" # optional: defaults to us-east-1
You can’t perform that action at this time.
0 commit comments