Skip to content

Deploy to GitHub Pages #17

Deploy to GitHub Pages

Deploy to GitHub Pages #17

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "22.14.0"
- name: Install pnpm
run: npm install -g pnpm
- name: Install dependencies
run: pnpm install
- name: Build the project
env:
VITE_STADIA_API_KEY: ${{ secrets.VITE_STADIA_API_KEY }}
run: pnpm build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
publish_branch: gh-pages