Skip to content

Publish Website

Publish Website #3

name: Publish Website
on: [workflow_dispatch]
jobs:
publish:
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 #see: https://github.com/actions/checkout/releases
- uses: actions/setup-node@v4 #see: https://github.com/actions/setup-node/releases
- run: npm install
- run: npm test
- uses: actions/configure-pages@v5 #see: https://github.com/actions/configure-pages/releases
- uses: actions/upload-pages-artifact@v3 #see: https://github.com/actions/upload-pages-artifact/releases
with:
path: docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 #see: https://github.com/actions/deploy-pages/releases