Skip to content

Commit

Permalink
release脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboolic committed Aug 11, 2024
1 parent 0a38156 commit 44ed5cb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: release

on:
release:
types: [published]

jobs:
generate-txt:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # 你可以根据需要选择 Python 版本


- name: Generate rime zip
run: |
python program/release/generate_rime_all_schema_zip.py # 运行你的 Python 脚本
- name: Upload rime-schemas
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-sentence-schemas.zip
asset_name: rime-sentence-schemas.zip
asset_content_type: application/zip
upload_url: ${{ github.event.release.upload_url }}

0 comments on commit 44ed5cb

Please sign in to comment.