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

Compare commits

..

8 Commits

Author SHA1 Message Date
Edouard Griffiths
067324edd9
Merge pull request #2302 from srcejon/snap
Add github action to build and publish Snap
2024-11-01 23:16:02 +01:00
Jon Beniston
fa4f9c2d82 Update snap to github releases and snap store. 2024-11-01 12:21:59 +00:00
srcejon
7f275f2a3e
Merge branch 'f4exb:master' into snap 2024-11-01 12:05:46 +00:00
Jon Beniston
4d6d97538c Fix syntax 2024-10-31 16:07:48 +00:00
Jon Beniston
ede06e2ca8 Fix version name. 2024-10-31 16:05:50 +00:00
Jon Beniston
729d663832 Add id to try to fix "Input required and not supplied: path" in upload-artifact 2024-10-31 14:38:52 +00:00
Jon Beniston
5ac77fca98 Try snapcore/action-build instead 2024-10-31 13:31:05 +00:00
Jon Beniston
ab13f94cf0 Add github action to build snap. 2024-10-31 13:21:34 +00:00

45
.github/workflows/snap.yml vendored Normal file
View File

@ -0,0 +1,45 @@
# See: https://github.com/snapcore/action-build
name: SDRangel snap release build
on:
push:
branches:
- snap
tags:
- 'v*'
pull_request:
jobs:
build_snap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Get version
id: get_version
run: |
if [[ "${{github.ref_name}}" == "snap" ]]; then
echo "version=${{github.sha}}" >> $GITHUB_OUTPUT
else
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT
fi
- uses: snapcore/action-build@v1
id: build
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: sdrangel-${{ steps.get_version.outputs.version }}-amd64.snap
path: ${{ steps.build.outputs.snap }}
- name: Upload release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.build.outputs.snap }}
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAP_STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable