Skip to content

Rename workflow

Rename workflow #9

name: Build and deploy to Github Pages
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
contents: write # not sure why this is needed, if indeed it is
steps:
- uses: actions/checkout@v4
- run: mkdir build
- name: Setup and build
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm install -g elm uglify-js
- run: ./build.sh
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build