Skip to content

Give up on github-pages-deploy-action and switch to official actions/… #13

Give up on github-pages-deploy-action and switch to official actions/…

Give up on github-pages-deploy-action and switch to official actions/… #13

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
- run: pwd && ls && ls build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4