forked from extern/httpie-cli
29 lines
727 B
YAML
29 lines
727 B
YAML
name: Release snap
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
branch:
|
|
description: "The branch, tag or SHA to release from"
|
|
required: true
|
|
default: "master"
|
|
level:
|
|
description: "Release level: stable, candidate, beta, edge"
|
|
required: true
|
|
default: "edge"
|
|
|
|
jobs:
|
|
snap:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
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 }}
|
|
release: ${{ github.event.inputs.level }}
|