2022-03-09 13:26:51 +01:00
|
|
|
name: Release on Snap
|
2022-01-26 10:50:22 +01:00
|
|
|
|
2021-10-08 11:24:24 +02:00
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
branch:
|
|
|
|
description: "The branch, tag or SHA to release from"
|
|
|
|
required: true
|
|
|
|
default: "master"
|
|
|
|
|
|
|
|
jobs:
|
2022-03-09 13:26:51 +01:00
|
|
|
snap-build-and-release:
|
|
|
|
name: Build & Release the Snap Package
|
2021-10-08 11:24:24 +02:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-09 13:26:51 +01:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
# If any of the stages fail, then we'll stop the action
|
2022-04-16 01:06:34 +02:00
|
|
|
# to give release manager time to investigate the underlying
|
2022-03-09 13:26:51 +01:00
|
|
|
# issue.
|
|
|
|
fail-fast: true
|
|
|
|
matrix:
|
|
|
|
level: [edge, beta, candidate, stable]
|
|
|
|
|
|
|
|
# Set the concurrency level for this version, so
|
|
|
|
# that we'll release one by one.
|
|
|
|
concurrency: ${{ github.event.inputs.branch }}
|
|
|
|
|
2021-10-08 11:24:24 +02:00
|
|
|
steps:
|
2022-03-03 17:16:56 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-10-08 11:24:24 +02:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.inputs.branch }}
|
2022-03-09 13:26:51 +01:00
|
|
|
|
2021-10-08 11:24:24 +02:00
|
|
|
- uses: snapcore/action-build@v1
|
|
|
|
id: build
|
2022-03-09 13:26:51 +01:00
|
|
|
|
2021-10-08 11:24:24 +02:00
|
|
|
- uses: snapcore/action-publish@v1
|
|
|
|
with:
|
|
|
|
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
|
|
|
|
snap: ${{ steps.build.outputs.snap }}
|
2022-03-09 13:26:51 +01:00
|
|
|
release: ${{ matrix.level }}
|