Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboolic committed Jul 20, 2024
1 parent 188b318 commit 03d56c0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,18 @@ jobs:
id: dict_for_fcitx5
run: |
python others/program/release/generate_dict_for_fcitx5.py # 运行你的 Python 脚本
- name: Get upload URL
id: upload-url
uses: actions/github-script@v6
with:
script: |
return context.payload.release.upload_url.replace('{?name,label}', '');
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
asset_path: ./dict_for_fcitx5.txt
asset_name: dict_for_fcitx5.txt
asset_content_type: text/plain
upload_url: ${{ steps.dict_for_fcitx5.outputs.result }}
upload_url: ${{ steps.upload-url.outputs.result }}

0 comments on commit 03d56c0

Please sign in to comment.