Skip to content

Commit

Permalink
Backport working workflows from feature-rebac (#975)
Browse files Browse the repository at this point in the history
* Backport working workflows from feature-rebac

* Only only v1 tags on main to trigger release
  • Loading branch information
kian99 committed Jun 29, 2023
1 parent 093b9ff commit cec35fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/charm-release.yaml
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
Expand Down Expand Up @@ -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"

Expand All @@ -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"
2 changes: 1 addition & 1 deletion .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- run: sudo snap install snapcraft --channel=7.x/stable --classic
- run: mkdir -p snap
- run: cp ./snaps/jimm/snapcraft.yaml ./snap/snapcraft.yaml
- run: snapcraft --destructive-mode
- run: snapcraft snap --destructive-mode --output jimm.snap
- uses: actions/upload-artifact@v3
with:
name: jimm-snap
Expand Down

0 comments on commit cec35fe

Please sign in to comment.