1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 01:18:38 -05:00

Try snapcore/action-build instead

This commit is contained in:
Jon Beniston 2024-10-31 13:31:05 +00:00
parent ab13f94cf0
commit 5ac77fca98

View File

@ -1,3 +1,4 @@
# See: https://github.com/snapcore/action-build
name: SDRangel snap release build name: SDRangel snap release build
on: on:
@ -16,11 +17,7 @@ jobs:
with: with:
submodules: true submodules: true
fetch-depth: 0 fetch-depth: 0
- name: Install Snapcraft - uses: snapcore/action-build@v1
uses: samuelmeuli/action-snapcraft@v2
- name: Build snap
run: |
snapcraft
- name: Get version - name: Get version
id: get_version id: get_version
run: echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $env:GITHUB_OUTPUT run: echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $env:GITHUB_OUTPUT
@ -28,4 +25,4 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: sdrangel-${{ steps.get_version.outputs.version }}-amd64.snap name: sdrangel-${{ steps.get_version.outputs.version }}-amd64.snap
path: ${{ github.workspace }}/sdrangel_${{ steps.get_version.outputs.version }}_amd64.snap path: ${{ steps.snapcraft.outputs.snap }}