-
Notifications
You must be signed in to change notification settings - Fork 59
39 lines (32 loc) · 1.08 KB
/
deploy-scripts.yml
File metadata and controls
39 lines (32 loc) · 1.08 KB
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: Publish Install Scripts
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Compile .NET Core init DLL
run: ./build.sh
working-directory: scripts/netcore
- uses: actions/setup-java@v1
with:
java-version: '10'
- name: Compile Java init JAR
run: ./build.sh
working-directory: scripts/java
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.ARTIFACT_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.ARTIFACT_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Deploy to S3
run: aws s3 sync --delete --exclude="$PWD/*/*" ./ s3://tunshell-init/ --acl=public-read --cache-control max-age=7200 --metadata-directive REPLACE
working-directory: scripts
- name: Invalidate CloudFront
run: aws cloudfront create-invalidation --distribution-id=E2JEG1NKANF1OH --paths '/*'