Skip to content

Add GitHub Pages deployment to workflow #2

Add GitHub Pages deployment to workflow

Add GitHub Pages deployment to workflow #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- uses: peaceiris/actions-gh-pages@v4
name: GitHub Pages Deploy
with:
github_token: ${{ secrets.GH_PAT || github.token }}
publish_dir: "/dist"
force_orphan: "false"
user_name: "Landing Bot"
user_email: "[email protected]"