From e04500b74ea9c38a8d8280980b20f30562e79ef4 Mon Sep 17 00:00:00 2001 From: Stan Dzhumaev Date: Thu, 2 Jan 2025 10:10:19 -0800 Subject: [PATCH] [AXON-43] chore: fix CI warnings about release actions --- .github/workflows/release-nightly.yaml | 18 +++++------------- .github/workflows/release.yaml | 18 +++++------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/.github/workflows/release-nightly.yaml b/.github/workflows/release-nightly.yaml index 7c42aef0..71283a23 100644 --- a/.github/workflows/release-nightly.yaml +++ b/.github/workflows/release-nightly.yaml @@ -89,22 +89,14 @@ jobs: - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.RELEASE_TAG }} - release_name: Release ${{ env.RELEASE_TAG }} + name: Release ${{ env.RELEASE_TAG }} draft: false prerelease: true - - - name: Upload Release Assets - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./atlascode-${{ env.PACKAGE_VERSION }}.vsix - asset_name: atlascode-${{ env.PACKAGE_VERSION }}.vsix - asset_content_type: application/zip + files: | + atlascode-${{ env.PACKAGE_VERSION }}.vsix + fail_on_unmatched_files: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1a0b1a48..96960d3c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -86,22 +86,14 @@ jobs: - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: softprops/action-gh-release@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ env.RELEASE_TAG }} - release_name: Release ${{ env.RELEASE_TAG }} + name: Release ${{ env.RELEASE_TAG }} draft: false prerelease: false - - - name: Upload Release Assets - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./atlascode-${{ env.PACKAGE_VERSION }}.vsix - asset_name: atlascode-${{ env.PACKAGE_VERSION }}.vsix - asset_content_type: application/zip + files: | + atlascode-${{ env.PACKAGE_VERSION }}.vsix + fail_on_unmatched_files: true