2022-01-26 10:50:22 +01:00
|
|
|
name: Release snap
|
|
|
|
|
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"
|
2022-01-26 10:44:24 +01:00
|
|
|
level:
|
|
|
|
description: "Release level: stable, candidate, beta, edge"
|
|
|
|
required: true
|
|
|
|
default: "edge"
|
2021-10-08 11:24:24 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
snap:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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 }}
|
|
|
|
- uses: snapcore/action-build@v1
|
|
|
|
id: build
|
|
|
|
- uses: snapcore/action-publish@v1
|
|
|
|
with:
|
|
|
|
store_login: ${{ secrets.SNAP_STORE_LOGIN }}
|
|
|
|
snap: ${{ steps.build.outputs.snap }}
|
2022-01-26 10:44:24 +01:00
|
|
|
release: ${{ github.event.inputs.level }}
|