httpie-cli/.github/workflows/release-snap.yml

41 lines
1.0 KiB
YAML
Raw Normal View History

2022-03-09 13:26:51 +01:00
name: Release on Snap
2022-01-26 10:50:22 +01: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
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
# to give release manager time to investigate the underyling
# 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 }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch }}
2022-03-09 13:26:51 +01:00
- uses: snapcore/action-build@v1
id: build
2022-03-09 13:26:51 +01: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 }}