-
Notifications
You must be signed in to change notification settings - Fork 11
33 lines (30 loc) · 963 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
name: release
on:
release:
types: [published, edited]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
run: |
bash scripts/app_build.sh
- name: Upload to S3 bucket
uses: tpaschalis/s3-sync-action@master
with:
args: --acl public-read --recursive
env:
AWS_S3_BUCKET: bargs.link
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "eu-west-1"
FILE: "dist"
- name: Invalidate AWS CloudFront distribution
uses: awact/cloudfront-action@master
env:
SOURCE_PATH: "/"
AWS_REGION: "eu-west-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }}