Skip to content

Build and release snap #11

Build and release snap

Build and release snap #11

Workflow file for this run

name: release
run-name: Build and release snap
on:
create:
branches: [main]
jobs:
build:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ${{ matrix.builder }}
strategy:
matrix:
include:
- builder: ubuntu-latest
platform: linux/amd64
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/build
with:
publish: ${{ startsWith(github.ref, 'refs/tags/') }}
release: latest/stable
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
release:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
pattern: "*.snap"
merge-multiple: true
- uses: ncipollo/release-action@v1
with:
bodyFile: RELEASE.md
artifacts: "${{ github.workspace }}/*.snap"
makeLatest: true
skipIfReleaseExists: true
artifactErrorsFailBuild: true