-
Notifications
You must be signed in to change notification settings - Fork 24
39 lines (34 loc) · 1009 Bytes
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v1
with:
node-version: '14'
- run: npm install
- run: npm run lint
- run: npm run build
- name: Sync UI Bundle to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --include '*.zip'
env:
AWS_S3_BUCKET: ${{ secrets.STATIC_CONTENT_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.DEVREL_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEVREL_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-west-1'
SOURCE_DIR: 'build'
DEST_DIR: 'build'
# if the AWS_S3_BUCKET is undefined, the task will fail
# also make sure that we are on master before publishing the "latest" version
if: ${{ env.AWS_S3_BUCKET != '' && github.ref == 'refs/heads/master' }}