-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (49 loc) · 1.43 KB
/
atmos-angular.yml
File metadata and controls
56 lines (49 loc) · 1.43 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: atmos-angular
run-name: atmos-angular build and deploy by ${{ github.actor }}
on:
push:
paths:
- "atmos-angular/**"
- ".github/workflows/atmos-angular.yml"
env:
BUILD_PATH: ./atmos-angular/dist/atmos
ZIP_PATH: OwnaTechnical.Application/bin/publish/OwnaTechnical.zip
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./atmos-angular
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14"
- run: npm install
- run: npm run build
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.2
with:
name: atmos
path: ${{ env.BUILD_PATH }}
retention-days: 1
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download a Build Artifact
uses: actions/download-artifact@v2.1.1
with:
name: atmos
path: atmos
- name: Deploy static site to S3 bucket
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: projects.samhenry.tech
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_EXTERNALDEPLOYMENT_KEYID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_EXTERNALDEPLOYMENT_SECRET }}
AWS_REGION: "ap-southeast-2"
SOURCE_DIR: "./atmos"
DEST_DIR: "atmos"