From e2b6bb9233ca4869d0a31f5190eba777304d7a7d Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Mon, 16 Jun 2025 02:20:43 +0800 Subject: [PATCH] Deprecate `actions/upload-release-asset` [GitHub #202] --- .github/workflows/pkg-DEB.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pkg-DEB.yml b/.github/workflows/pkg-DEB.yml index 3ef79a2..3e807a6 100644 --- a/.github/workflows/pkg-DEB.yml +++ b/.github/workflows/pkg-DEB.yml @@ -135,15 +135,11 @@ jobs: - name: Upload to Releases (the newest release) if is release event if: github.event_name == 'release' - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.UPLOAD_TO_GITHUB }} + uses: softprops/action-gh-release@v2 with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: dist/chsrc_${{ steps.get_version.outputs.version }}-1_amd64.deb - asset_name: chsrc_${{ steps.get_version.outputs.version }}-1_amd64.deb - asset_content_type: application/vnd.debian.binary-package - + files: | + dist/chsrc_*_amd64.deb + token: ${{ secrets.UPLOAD_TO_GITHUB }} - name: Upload to Releases (the 'pre' release) if is push event if: github.event_name == 'push'