From f35d0ec73896ee530ad33a7fb1cafa28ca6054f7 Mon Sep 17 00:00:00 2001 From: Mehrshad Date: Tue, 20 Feb 2024 15:04:26 +0330 Subject: [PATCH] CI: upload snap release --- .github/workflows/CI.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 0689d229f..3fb605762 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -555,6 +555,18 @@ jobs: draft: false prerelease: false + - name: Upload snap package As Release Asset + id: upload-snap-asset + if: startsWith(github.ref, 'refs/tags/') + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.prepare.outputs.upload_url }} + asset_path: ${{ steps.find_snap_file.outputs.file_path }} + asset_name: ${{ steps.find_snap_file.outputs.file_name }} + asset_content_type: application/octet-stream + snap_pkg_beta: needs: @@ -624,3 +636,15 @@ jobs: release_name: Release ${{ github.ref }} draft: false prerelease: false + + - name: Upload snap beta package As Release Asset + id: upload-snap-beta-asset + if: startsWith(github.ref, 'refs/tags/') + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.prepare.outputs.upload_url }} + asset_path: ${{ steps.find_snap_beta_file.outputs.file_path }} + asset_name: ${{ steps.find_snap_beta_file.outputs.file_name }} + asset_content_type: application/octet-stream