From 6c07799d6e884df7c18412611de8d50c97070d4d Mon Sep 17 00:00:00 2001 From: A Farzat Date: Mon, 9 Mar 2026 10:23:48 +0300 Subject: Upgrade GitHub workflow to action-gh-release This is because upload-release-asset was deprecated. --- .github/workflows/ci.yml | 33 ++++++--------------------------- 1 file changed, 6 insertions(+), 27 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 18d580e..c8786ae 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,29 +57,9 @@ jobs: - name: Run tests run: cargo test --all - create_release: + build_and_release: needs: test if: startsWith(github.ref, 'refs/tags/v') - runs-on: ubuntu-latest - - outputs: - upload_url: ${{ steps.create.outputs.upload_url }} - - steps: - - name: Create GitHub Release - id: create - uses: actions/create-release@v1 - with: - tag_name: ${{ github.ref_name }} # 'v0.1.1' - release_name: ${{ github.ref_name }} - draft: false - prerelease: false - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - build_and_upload: - needs: [test, create_release] - if: startsWith(github.ref, 'refs/tags/v') runs-on: ${{ matrix.os }} strategy: @@ -126,12 +106,11 @@ jobs: Copy-Item "${{ matrix.bin_path }}" ".\${{ matrix.asset_name }}" shell: pwsh - - name: Upload to GitHub Release - uses: actions/upload-release-asset@v1 + - name: Create/Update GitHub Release and upload asset + uses: softprops/action-gh-release@v2 with: - upload_url: ${{ needs.create_release.outputs.upload_url }} - asset_path: ./${{ matrix.asset_name }} - asset_name: ${{ matrix.asset_name }} - asset_content_type: application/octet-stream + tag_name: ${{ github.ref_name }} + name: ${{ github.ref_name }} + files: ./${{ matrix.asset_name }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -- cgit v1.2.3-70-g09d2