-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport working workflows from feature-rebac (#975)
* Backport working workflows from feature-rebac * Only only v1 tags on main to trigger release
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
name: Release to latest/edge | ||
name: Release to v1/edge | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v*' | ||
- 'v1*' | ||
|
||
# Note this workflow requires a Github secret to provide auth against charmhub. | ||
# This can be generated with the following command | ||
|
@@ -35,7 +35,7 @@ jobs: | |
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
channel: "v1/edge" | ||
channel: "1/edge" | ||
charm-path: "./charms/jimm-k8s" | ||
local-image: "true" | ||
|
||
|
@@ -54,15 +54,15 @@ jobs: | |
with: | ||
name: jimm-snap | ||
- name: Install charmcraft | ||
run: sudo snap install charmcraft --channel=2.x/stable | ||
run: sudo snap install charmcraft --channel=2.x/stable --classic | ||
- name: Publish Charm Resource | ||
run: charmcraft upload-resource juju-jimm jimm-snap --filepath ./jimm-snap | ||
run: charmcraft upload-resource juju-jimm jimm-snap --filepath ./jimm.snap | ||
env: | ||
CHARMCRAFT_AUTH: "${{ secrets.CHARMHUB_TOKEN }}" | ||
- name: Upload charm to charmhub | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
channel: "v1/edge" | ||
channel: "1/edge" | ||
charm-path: "./charms/jimm" |
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