-
Notifications
You must be signed in to change notification settings - Fork 24
37 lines (32 loc) · 1018 Bytes
/
release.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
name: Release
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v2.1.3
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
- run: cp build/ui-bundle.zip build/ui-bundle-${GITHUB_REF##*/}.zip
- run: cp build/ui-bundle.zip build/ui-bundle-latest.zip
env:
GITHUB_REF: ${{ github.ref }}
- 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'