Skip to content

edits

edits #3

Workflow file for this run

name: Deploy to GitHub Pages
on:
# You can choose which events trigger the deploy.
push:
branches:
- main # Deploy to gh-pages whenever you push to main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist # Directory with the build output
# If you want to force-push (e.g., to remove old files completely):
# force_orphan: gh-pages
# If you want a custom commit message:
# commit_message: Deploy from GitHub Actions