diff --git a/.github/workflows/release-snap.yml b/.github/workflows/release-snap.yml new file mode 100644 index 00000000..9c6b0094 --- /dev/null +++ b/.github/workflows/release-snap.yml @@ -0,0 +1,22 @@ +on: + workflow_dispatch: + inputs: + branch: + description: "The branch, tag or SHA to release from" + required: true + default: "master" + +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: edge diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 674bf04b..9e1c1f53 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,6 +17,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + ref: ${{ github.event.inputs.branch }} - uses: actions/setup-python@v2 with: python-version: 3.9