Skip to content

Merge pull request #6 from mstephen19/develop #12

Merge pull request #6 from mstephen19/develop

Merge pull request #6 from mstephen19/develop #12

Workflow file for this run

name: Github Page
permissions:
pages: write
id-token: write
contents: read
on:
push:
branches: [main]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache dependencies
id: cache_dependencies
uses: actions/cache@v3
with:
path: ./site/node_modules
key: node-modules-${{ hashFiles('./site/yarn.lock') }}
- name: Run install
working-directory: ./site
if: steps.cache_dependencies.outputs.cache-hit != 'true'
run: yarn install
- name: Run build
working-directory: ./site
run: yarn build
- name: Create .nojekyll
working-directory: ./site
run: touch ./out/.nojekyll
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./site/out
- name: Publish to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4