Skip to content

0.0.3 细胞词库

0.0.3 细胞词库 #12

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 frost_dict_for_fcitx5.txt from YAML
id: frost_dict_for_fcitx5
run: |
python others/program/release/generate_dict_for_fcitx5.py # 运行你的 Python 脚本
- name: Check if file exists
run: |
if [ -f "./frost_dict_for_fcitx5.txt" ]; then
echo "File exists."
else
echo "File does not exist."
fi
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
with:
asset_path: frost_dict_for_fcitx5.txt
asset_name: frost_dict_for_fcitx5.txt
asset_content_type: text/plain
upload_url: ${{ github.event.release.upload_url }}