-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add snap release workflow * Remove arm arch to avoid confusion and change input to match bootstack-action repo --------- Co-authored-by: Andrea Ieri <[email protected]>
- Loading branch information
Showing
3 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish snap | ||
|
||
on: | ||
push: | ||
branches: | ||
- '[0-9].[0-9]+' | ||
- main | ||
- master | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
uses: canonical/bootstack-actions/.github/workflows/snap-release.yaml@main | ||
secrets: inherit | ||
with: | ||
python-version-unit: "['3.8', '3.10']" | ||
python-version-func: "3.10" | ||
tox-version: "<4" | ||
snapcraft: true | ||
commands: "['make functional']" | ||
# "channel" should be one or a (comma-separated) list of <track>/<risk-level> | ||
# Check if the current branch is the default ("main" or "master"). If true, track is set to "latest"; | ||
# otherwise, use the versioned branch name as the track name | ||
# The risk level we want to release the snap to is "edge" | ||
channel: ${{ contains(fromJSON('["main", "master"]'), github.ref_name) && 'latest' || github.ref_name }}/edge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters