更新日志 #54
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: 生成码表 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'src/**' | |
- '.github/workflows/**' | |
pull_request: | |
workflow_dispatch: | |
workflow_call: | |
inputs: | |
repository: | |
default: ${{ github.repository }} | |
required: false | |
type: string | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: 检查分支 | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: 安装 Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: 安装Python依赖包 | |
run: | | |
cd src | |
pip install -r requirements.txt | |
- name: 构建码表 | |
run: | | |
cd src | |
python -u 构建码表.py | |
- name: 上传构件 | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ShanRenMaLTS-dict | |
path: ./src/build/ | |
# - name: 自动推送 | |
# uses: stefanzweifel/git-auto-commit-action@v5 | |
# with: | |
# commit_message: 自动构建码表 | |
# commit_user_email: [email protected] | |
# commit_user_name: siuze | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |