Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
earcath authored Jun 26, 2024
1 parent c4a2280 commit 646ac58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v2
- name: 获取版本号
run: |
VERSION=$(cat module.prop | grep 'version' | sed 's/version=//')
VERSION=$(cat build.prop | grep 'version' | sed 's/version=//')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: 打印版本号
run: echo "提取的版本号为 ${{ env.VERSION }}"
Expand All @@ -25,7 +25,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }} # 使用提取的版本号作为标签名
tag_name: v${{ env.VERSION }} # 直接使用版本号作为标签名
release_name: alist-ddns-go_${{ env.VERSION }} # 使用提取的版本号作为 Release 名称
draft: false
prerelease: false
Expand All @@ -37,6 +37,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./alist-ddns-go_${{ env.VERSION }}.zip
asset_path: ./${{ env.VERSION }}.zip
asset_name: alist-ddns-go_${{ env.VERSION }}.zip
asset_content_type: application/zip

0 comments on commit 646ac58

Please sign in to comment.