-
Notifications
You must be signed in to change notification settings - Fork 32
102 lines (86 loc) · 2.93 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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_rime_all_schema_zip.py
- name: generate_shouxin_aux.py
run: |
python program/release/generate_shouxin_aux.py
- name: generate_moqi_schema.py
run: |
python program/release/generate_moqi_schema.py
- name: generate_xh_schema.py
run: |
python program/release/generate_xh_schema.py
- name: generate_zrm_schema.py
run: |
python program/release/generate_zrm_schema.py
- name: generate_fancha_en_jp.py
run: |
python program/release/generate_fancha_en_jp_schema.py
- name: Upload rime-all
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-all-schemas.zip
asset_name: rime-all-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-moqi
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-moqi-schemas.zip
asset_name: rime-moqi-schemas.zip
asset_content_type: application/zip
upload_url: ${{ github.event.release.upload_url }}
- name: Upload rime-xh
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-flypy-flypy.zip
asset_name: rime-flypy-flypy.zip
asset_content_type: application/zip
upload_url: ${{ github.event.release.upload_url }}
- name: Upload rime-zrm
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: rime-zrm-zrm.zip
asset_name: rime-zrm-zrm.zip
asset_content_type: application/zip
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 }}