Skip to content

Create deployment workflow #1

Create deployment workflow

Create deployment workflow #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
- gh-pages-test
workflow_dispatch:
# Set permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Compile JS
run: npx rollup -c
- name: Set up GitHub Pages
uses: actions/configure-pages@v4
- name: Deploy site
uses: actions/deploy-pages@v4
with:
artifact_name: 'public'