From a74e23004e61a7c82f21dd5793a2062e62a4b925 Mon Sep 17 00:00:00 2001 From: Tony Meyer Date: Mon, 2 Dec 2024 11:22:58 +1300 Subject: [PATCH] ci: all the ops-scenario publish actions need to be done in testing/ (#1479) The build step is already done in `./testing/`, but the publish and attestation steps are not, which mean they fail because they cannot find the `dists` folder. --- .github/workflows/publish-ops-scenario.yaml | 2 ++ .github/workflows/test-publish-ops-scenario.yaml | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/publish-ops-scenario.yaml b/.github/workflows/publish-ops-scenario.yaml index a5d9cf488..693de5798 100644 --- a/.github/workflows/publish-ops-scenario.yaml +++ b/.github/workflows/publish-ops-scenario.yaml @@ -29,8 +29,10 @@ jobs: run: python -m build working-directory: ./testing - name: Attest build provenance + working-directory: ./testing uses: actions/attest-build-provenance@v1.4.3 with: subject-path: 'testing/dist/*' - name: Publish + working-directory: ./testing uses: pypa/gh-action-pypi-publish@release/v1 diff --git a/.github/workflows/test-publish-ops-scenario.yaml b/.github/workflows/test-publish-ops-scenario.yaml index 90bec5211..0162ca2ab 100644 --- a/.github/workflows/test-publish-ops-scenario.yaml +++ b/.github/workflows/test-publish-ops-scenario.yaml @@ -30,6 +30,7 @@ jobs: with: subject-path: 'testing/dist/*' - name: Publish to test.pypi.org + working-directory: ./testing uses: pypa/gh-action-pypi-publish@release/v1 with: repository-url: https://test.pypi.org/legacy/