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 5ed6534 commit 669b57e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ jobs:
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: Check if file exists
run: |
if [ -f "./dict_for_fcitx5.txt" ]; then
Expand All @@ -37,7 +30,6 @@ jobs:
echo "File does not exist."
fi
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
Expand All @@ -46,4 +38,4 @@ jobs:
asset_path: dict_for_fcitx5.txt
asset_name: dict_for_fcitx5.txt
asset_content_type: text/plain
upload_url: ${{ steps.upload-url.outputs.result }}
upload_url: ${{ github.event.release.upload_url }}

0 comments on commit 669b57e

Please sign in to comment.