Skip to content

Deploy to GitHub Pages #6

Deploy to GitHub Pages

Deploy to GitHub Pages #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install dependencies
run: npm ci
- name: Build web
run: npm run build:web
- name: Upload production-ready build files
uses: actions/upload-pages-artifact@v3
with:
name: production-files
path: ./dist-web
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
# - name: Download artifact
# uses: actions/download-artifact@v3
# with:
# name: production-files
# path: ./dist-web
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: dist-web