Skip to content

chore: prepare ops 2.18.1 and ops-scenario 7.1.2 releases (#1566) #3

chore: prepare ops 2.18.1 and ops-scenario 7.1.2 releases (#1566)

chore: prepare ops 2.18.1 and ops-scenario 7.1.2 releases (#1566) #3

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
uses: actions/[email protected]
with:
subject-path: 'testing/dist/*'
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./testing/dist/