Skip to content

Merge pull request #23 from DigitKoodit/O-Hannonen-patch-1 #40

Merge pull request #23 from DigitKoodit/O-Hannonen-patch-1

Merge pull request #23 from DigitKoodit/O-Hannonen-patch-1 #40

Workflow file for this run

name: Release Website
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# Build React app
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- run: npm install
- run: npm run build
# Release built app to S3
- uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-north-1' # Stockholm
SOURCE_DIR: 'build' # output of npm run build