Skip to content

Deploy to GitHub Pages #379

Deploy to GitHub Pages

Deploy to GitHub Pages #379

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 Go
uses: actions/setup-go@v5
with:
go-version: 1.21
- name: Run Go command
run: go run main.go
- name: Move files
run: |
mkdir publish
mv index.html List Modules Script LICENSE 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