Skip to content

Commit

Permalink
Add attestation.
Browse files Browse the repository at this point in the history
Also update test-publish to match publish, which was missed earlier.
  • Loading branch information
tonyandrewmeyer committed Jun 21, 2024
1 parent 9e5463c commit fee4ccb
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ jobs:
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
with:
python-version: "3.10"
- name: Install wheel
run: pip install wheel
- name: Install build dependencies
run: pip install wheel build
- name: Build
run: python setup.py sdist bdist_wheel
run: python -m build
- name: Attest build provenance
uses: actions/[email protected]
with:
subject-path: ["dist/ops-*-py3-none.any.whl", "dist/ops-*.tar.gz"]
- name: Publish to test.pypi.org
uses: pypa/gh-action-pypi-publish@release/v1
with:
Expand Down

0 comments on commit fee4ccb

Please sign in to comment.