Skip to content

Deploy to GitHub Pages #412

Deploy to GitHub Pages

Deploy to GitHub Pages #412

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
schedule:
- cron: '0 12 * * *'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Install dependencies
run: pnpm install
- name: Run build script
run: pnpm run build
- name: Move files
run: |
mkdir publish
mv List Modules Script LICENSE publish/
mv index.html publish/
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GIT_TOKEN }}
publish_dir: ./publish
cname: ruleset.tiiwoo.moe