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 22, 2024
1 parent 9fd4f82 commit 58d48f6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 58d48f6

Please sign in to comment.