Skip to content

Commit

Permalink
Update create_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dlzmoe committed Dec 25, 2024
1 parent 32fc2cc commit b0c5900
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ jobs:
CURRENT_DATE=$(TZ='Asia/Shanghai' date +'%Y-%m-%d %H:%M')
sed -i "s/\$PACKAGE_VERSION/$PACKAGE_VERSION/g" CHANGELOG.md
sed -i "s/\$CURRENT_DATE/$CURRENT_DATE/g" CHANGELOG.md
gh release create "$PACKAGE_VERSION" .output/ \
gh release create "$PACKAGE_VERSION" \
-t "$PACKAGE_VERSION" \
-n "$(cat CHANGELOG.md)
---
使用方法,Chrome、Edge、Arc 用户请在 [Chrome 商店中安装](https://chromewebstore.google.com/detail/fbgblmjbeebanackldpbmpacppflgmlj)
Expand All @@ -59,4 +59,13 @@ jobs:
发布于:$CURRENT_DATE"
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

- name: Upload release assets
if: env.create_release == 'true'
run: |
for file in .output/*; do
gh release upload "$PACKAGE_VERSION" "$file"
done
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 comments on commit b0c5900

Please sign in to comment.