mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-07 22:35:37 +00:00
Test building without publishing
This commit is contained in:
parent
70ff0ef70b
commit
040ee533de
12
.github/workflows/snap-release.yml
vendored
12
.github/workflows/snap-release.yml
vendored
@ -6,6 +6,15 @@ on:
|
||||
|
||||
# Allows you to run this workflow manually from the Actions tab
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
publish:
|
||||
description: "Publish to snap store"
|
||||
required: false
|
||||
default: "false"
|
||||
type: choice
|
||||
options:
|
||||
- "true"
|
||||
- "false"
|
||||
|
||||
jobs:
|
||||
buildSnap:
|
||||
@ -16,8 +25,9 @@ jobs:
|
||||
- uses: snapcore/action-build@v1
|
||||
id: build
|
||||
- uses: snapcore/action-publish@v1
|
||||
if: ${{ github.event_name == 'release' || github.event.inputs.publish == 'true' }}
|
||||
env:
|
||||
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
|
||||
with:
|
||||
snap: ${{ steps.build.outputs.snap }}
|
||||
release: stable
|
||||
release: stable
|
||||
|
||||
Loading…
Reference in New Issue
Block a user