diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 895a016..ee4f8ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}" @@ -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 @@ -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