Skip to content

Commit

Permalink
ci: add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 authored and NucciTheBoss committed Dec 20, 2024
1 parent 63b19e0 commit d5e0542
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2024 Canonical Ltd.
# See LICENSE for licensing details.

name: Release to latest/edge

on:
push:
branches:
- main

jobs:
ci-tests:
uses: ./.github/workflows/ci.yaml

release-to-charmhub:
name: Release filesystem-client to Charmhub
needs:
- ci-tests
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Select charmhub channel
uses: canonical/charming-actions/[email protected]
id: channel
- name: Release updated libraries to Charmhub
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMCRAFT_AUTH }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Upload charm to Charmhub
uses: canonical/charming-actions/[email protected]
with:
credentials: "${{ secrets.CHARMCRAFT_AUTH }}"
github-token: "${{ secrets.GITHUB_TOKEN }}"
channel: "${{ steps.channel.outputs.name }}"
2 changes: 1 addition & 1 deletion lib/charms/filesystem_client/v0/filesystem_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _on_start(self, event: ops.StartEvent) -> None:
]

# The unique Charmhub library identifier, never change it
LIBID = "todo"
LIBID = "7e11f60a31a441aaa70ada2f41c75580"

# Increment this major API version when introducing breaking changes
LIBAPI = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _on_start(self, event: ops.StartEvent) -> None:
]

# The unique Charmhub library identifier, never change it
LIBID = "todo"
LIBID = "7e11f60a31a441aaa70ada2f41c75580"

# Increment this major API version when introducing breaking changes
LIBAPI = 0
Expand Down

0 comments on commit d5e0542

Please sign in to comment.