Skip to content

Merge pull request #4 from JHWelch/JHWelch-patch-2 #15

Merge pull request #4 from JHWelch/JHWelch-patch-2

Merge pull request #4 from JHWelch/JHWelch-patch-2 #15

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
concurrency:
group: prod-deploy
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20.12.2'
cache: npm
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Archive production artifacts
uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
permissions:
contents: read
pages: write
id-token: write
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}
steps:
- name: Deploy artifact to GitHub Pages
uses: actions/deploy-pages@v4