Skip to content

release

release #5

Workflow file for this run

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_all_schema
run: |
python program/release/generate_moqi_wan_schema.py
- name: generate_shouxin_aux.py
run: |
python program/release/generate_shouxin_aux.py
- name: generate_fancha_en_jp.py
run: |
python program/release/generate_fancha_en_jp_schema.py
- name: Upload rime-moqi-wanxiang
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-moqi-wanxiang-schemas.zip
asset_name: rime-moqi-wanxiang-schemas.zip
asset_content_type: application/zip
upload_url: ${{ github.event.release.upload_url }}
- name: Upload shouxin
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: shouxin-moqi-aux-code-for-shouxin-input-method.txt
asset_name: shouxin-moqi-aux-code-for-shouxin-input-method.txt
asset_content_type: text/plain
upload_url: ${{ github.event.release.upload_url }}
- name: Upload rime-fancha
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-reverse-and-english-and-emoji.zip
asset_name: rime-reverse-and-english-and-emoji.zip
asset_content_type: application/zip
upload_url: ${{ github.event.release.upload_url }}