-
Notifications
You must be signed in to change notification settings - Fork 0
19 lines (18 loc) · 1.03 KB
/
deploy.yml
File metadata and controls
19 lines (18 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
if: github.repository == 'nbktechworld/full-stack-web-dev'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: sudo apt update -y && sudo apt install -y awscli
- run: aws configure set region us-east-1 --profile nbktechworld
- run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }} --profile nbktechworld
- run: aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} --profile nbktechworld
- run: mkdir -p dist && cp src/*.html dist && cp src/*.css dist && cp src/*.js dist
- run: aws s3 cp dist/ s3://nbktechworld/bootcamp-2024-06-17 --endpoint-url=http://us-southeast-1.linodeobjects.com --profile nbktechworld --recursive --acl public-read
- run: cd web-client && npm install && npm run build && aws s3 cp build/ s3://nbktechworld/bootcamp-2024-06-17/web-client --endpoint-url=http://us-southeast-1.linodeobjects.com --profile nbktechworld --recursive --acl public-read