Skip to content

Commit

Permalink
修改action
Browse files Browse the repository at this point in the history
  • Loading branch information
gaboolic committed Jul 20, 2024
1 parent da8f384 commit 5ed6534
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,21 @@ jobs:
script: |
return context.payload.release.upload_url.replace('{?name,label}', '');
- name: Check if file exists
run: |
if [ -f "./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: ./dict_for_fcitx5.txt
asset_path: dict_for_fcitx5.txt
asset_name: dict_for_fcitx5.txt
asset_content_type: text/plain
upload_url: ${{ steps.upload-url.outputs.result }}

0 comments on commit 5ed6534

Please sign in to comment.