From d403aea2cfcaa82f0718f2e15b3607b6d3a17ec5 Mon Sep 17 00:00:00 2001 From: Anna Bocharova Date: Mon, 25 Nov 2024 21:30:50 +0100 Subject: [PATCH] Upgrading release workflow: using modern attach action. (#329) --- .github/workflows/release.yaml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 587fd3d5..dd74269c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -130,17 +130,7 @@ jobs: path: dist - name: Rename to release.zip run: cp dist/octorelay-*.zip release.zip - - name: Get release ID - id: get_release - uses: bruceadams/get-release@v1.3.2 - env: - GITHUB_TOKEN: ${{ github.token }} - name: Attach the asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v2 with: - upload_url: ${{ steps.get_release.outputs.upload_url }} - asset_path: release.zip - asset_name: release.zip - asset_content_type: application/zip + files: release.zip