Skip to content

Update error page to allowed bundle age in webpack config #5

Update error page to allowed bundle age in webpack config

Update error page to allowed bundle age in webpack config #5

Workflow file for this run

# Name of flow
name: Deploy to product environment
# The event of github
# When should it (workflows) run?
on:
# Push to master or main
# and has type is `closed`, but it isn't enough
push:
branches: [master, main]
concurrency:
group: "pages"
cancel-in-progress: false
defaults:
run:
shell: bash
jobs:
build_website:
runs-on: ubuntu-latest
steps:
# Check out to repository
- name: Check to repository
uses: actions/checkout@v4
with:
submodules: recursive
# Install NODEJS
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
# Install dependencies
- name: Install dependencies
run: npm install
# Build website with webpack
# The directory is build/gui
- name: Build website
run: npm run build
- name: Upload website to Amazon S3
uses: shallwefootball/s3-upload-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
# Upload entire content of website to S3
source_dir: "build/gui"
destination_dir: ""