Skip to content

Commit

Permalink
CI: upload snap release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mersho committed Feb 20, 2024
1 parent 4fb0697 commit 0b830a5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,16 @@ jobs:
sudo apt update
./scripts/snap_release.sh
- name: Upload snap package As Release Asset
id: upload-snap-asset
if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.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:
Expand Down Expand Up @@ -621,3 +631,13 @@ jobs:
run: |
sudo apt update
./scripts/snap_release.sh beta
- name: Upload snap beta package As Release Asset
id: upload-snap-asset

This comment has been minimized.

Copy link
@knocte

knocte Feb 21, 2024

@Mersho are you serious????? I DOUBT YOU CAN USE THE SAME ID FOR BOTH STEPS! think logically ffs

if: startsWith(github.ref, 'refs/tags/')
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ needs.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

0 comments on commit 0b830a5

Please sign in to comment.