Skip to content

Deploy to GitHub Pages #11

Deploy to GitHub Pages

Deploy to GitHub Pages #11

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to deploy from"
required: true
default: "main"
permissions:
id-token: write
contents: read
pages: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }} # Use the selected branch
- name: Set up Node.js (required if you're using a static site generator)
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies with pnpm
run: pnpm install --no-frozen-lockfile
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload Artifact
uses: actions/upload-pages-artifact@v2
with:
# upload entire directory
path: "./e2e/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2