-
Notifications
You must be signed in to change notification settings - Fork 23
35 lines (32 loc) · 1.02 KB
/
publish_charm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build and publish charm
on:
push:
branches:
- charming-charmhub # TODO(mhdisk): Change this to main once we are ready to deploy
env:
CHARMCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS: true
ROCKCRAFT_ENABLE_EXPERIMENTAL_EXTENSIONS: true
jobs:
upload-charm:
name: Build and upload charm to charmhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Charmcraft
run: |
sudo snap install charmcraft --classic --channel=latest/edge
sudo snap install rustup --classic
- name: Fetch charm libs
run: |
cd ./charm
charmcraft fetch-libs
# - name: Pack charm
# run: |
# charmcraft pack -v --project-dir ./charm
- name: Upload charm to charmhub
uses: canonical/charming-actions/[email protected]
with:
charm-path: ./charm/
credentials: ${{ secrets.CHARMHUB_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
charmcraft-channel: latest/edge