Deploy to GitHub Pages #382
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |