Skip to content

更改 token

更改 token #2

name: Generate article page
on:
push:
branches:
- 'main'
paths:
- 'art/*'
- 'shell/art2text.sh'
- 'shell/genartlist.sh'
- '.github/workflows/generate-article-page.yml'
jobs:
generate-article-page:
name: Generate article page
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: remove previous build
run: |
rm -f ./text/*.html
- name: generate directory
run: |
./shell/genartlist.sh
- name: build article
run: |
./shell/art2text.sh
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: update article page'
file_pattern: 'text/*.html'
env:
GITHUB_TOKEN: ${{ secrets.SHEEP }}