-
Notifications
You must be signed in to change notification settings - Fork 7
32 lines (28 loc) · 973 Bytes
/
on_push.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
name: On Push
# On push to a "special" branch, we:
# * always publish to charmhub at latest/edge/branchname
# * always run tests
# where a "special" branch is one of main/master or track/**, as
# by convention these branches are the source for a corresponding
# charmhub edge channel.
on:
push:
branches:
- main
- track/**
jobs:
tests:
name: Run Tests
uses: ./.github/workflows/tests.yaml
# publish runs in series with tests, and only publishes if tests passes
publish-charm:
name: Publish Charm
needs: tests
uses: ./.github/workflows/publish.yaml
secrets:
CHARMCRAFT_CREDENTIALS: ${{ secrets.CHARMCRAFT_CREDENTIALS }}
JIMM_DEV_CLIENT_ID: ${{ secrets.JIMM_DEV_CLIENT_ID }}
JIMM_DEV_CLIENT_SECRET: ${{ secrets.JIMM_DEV_CLIENT_SECRET }}
JIMM_STG_CLIENT_ID: ${{ secrets.JIMM_STG_CLIENT_ID }}
JIMM_STG_CLIENT_SECRET: ${{ secrets.JIMM_STG_CLIENT_SECRET }}
JIMM_URL: ${{ secrets.JIMM_URL }}