-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 977 Bytes
/
build.yaml
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
name: Publish
on:
push:
branches:
- main
jobs:
build-upload:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- name: Remove Git artificats
run: |
rm -rf .git
rm -rf .github
rm .gitignore
- uses: konnected-io/aws-s3-github-action@master
name: Copy to S3
with:
command: cp
source: ./
destination: s3://install-konnected/
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: us-east-1
flags: --acl public-read --recursive
- uses: chetan/invalidate-cloudfront-action@v2
env:
DISTRIBUTION: E2FDL2RANMI9J7
PATHS: "/*"
AWS_REGION: "us-east-1"
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}