Skip to content

Merge branch 'master' of github.com:alexlemaire/portfolio #5

Merge branch 'master' of github.com:alexlemaire/portfolio

Merge branch 'master' of github.com:alexlemaire/portfolio #5

Workflow file for this run

name: deploy
on:
push:
branches:
- 'master'
paths:
- 'src/**'
- 'public/**'
- 'package.json'
# temp trigger
- '.github/workflows/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Copy files to folder for S3
run: mkdir s3 && cp -a /public/. /s3 && cp -a /build/. /s3
- name: Upload files to S3
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_KEY_SECRET }}
AWS_REGION: 'eu-central-1'
SOURCE_DIR: 's3'