Skip to content

Workflow file for this run

name: Deploy to GitHub Pages
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20' # Use the Node.js version that matches your development environment
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
token: ${{ secrets.GITHUB_TOKEN }} # GitHub automatically creates this secret to use in your workflow.
base: '/hanabi-tracker/' # Base directory path.