-
Notifications
You must be signed in to change notification settings - Fork 121
38 lines (37 loc) · 1.11 KB
/
publish-ops-scenario.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
36
37
38
name: Publish (ops-scenario)
on:
push:
tags:
- 'scenario-7.*'
jobs:
framework-tests:
uses: ./.github/workflows/framework-tests.yaml
observability-charm-tests:
uses: ./.github/workflows/observability-charm-tests.yaml
hello-charm-tests:
uses: ./.github/workflows/hello-charm-tests.yaml
build-n-publish:
name: Build and Publish ops-scenario to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
attestations: write
contents: read
needs: [framework-tests, observability-charm-tests, hello-charm-tests]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
- name: Install build dependencies
run: pip install wheel build
- name: Build
run: python -m build
working-directory: ./testing
- name: Attest build provenance
working-directory: ./testing
uses: actions/[email protected]
with:
subject-path: 'testing/dist/*'
- name: Publish
working-directory: ./testing
uses: pypa/gh-action-pypi-publish@release/v1