Skip to content

Fix gh-pages command syntax #7

Fix gh-pages command syntax

Fix gh-pages command syntax #7

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Deploy to GitHub Pages
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
npx gh-pages -d dist -u "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}