Skip to content

Deploy website

Deploy website #6

Workflow file for this run

name: Deploy Website
on:
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 10.29.3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm run build
- name: Configure git identity
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
- name: Deploy site
run: pnpm run deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}