Skip to content

chore: 删除.gitignore中的index.html条目 #4

chore: 删除.gitignore中的index.html条目

chore: 删除.gitignore中的index.html条目 #4

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.x'
- name: Generate HTML
run: go run main.go
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_branch: gh-pages
exclude_assets: '**/*.go,**/*.json,**/*.md,.github/**'