From 1b0191ce894e9aa8e89eceaef309a8c0d0ca3832 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Thu, 16 May 2024 14:36:27 +0200 Subject: [PATCH] revert debug changes --- .github/workflows/publish-package.yml | 34 +++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index ab706b3ef8..edd27998dd 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -1,10 +1,10 @@ name: publish distributions on: push: - # branches: - # - main - # tags: - # - v* + branches: + - main + tags: + - v* pull_request: branches: - main @@ -104,11 +104,11 @@ jobs: run: python -m zipfile --list dist/pyhf-*.whl - name: Generate artifact attestation for sdist and wheel - # # If publishing to TestPyPI or PyPI - # if: >- - # (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') - # || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') - # || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf') + # If publishing to TestPyPI or PyPI + if: >- + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') + || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') + || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf') uses: actions/attest-build-provenance@897ed5eab6ed058a474202017ada7f40bfa52940 # v1.0.0 with: subject-path: "dist/pyhf-*" @@ -144,20 +144,20 @@ jobs: - name: Verify sdist artifact attestation # If publishing to TestPyPI or PyPI - # if: >- - # (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') - # || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') - # || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf') + if: >- + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') + || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') + || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh attestation verify dist/pyhf-*.tar.gz --repo ${{ github.repository }} - name: Verify wheel artifact attestation # If publishing to TestPyPI or PyPI - # if: >- - # (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') - # || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') - # || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf') + if: >- + (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && github.repository == 'scikit-hep/pyhf') + || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == 'true' && github.repository == 'scikit-hep/pyhf') + || (github.event_name == 'release' && github.event.action == 'published' && github.repository == 'scikit-hep/pyhf') env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh attestation verify dist/pyhf-*.whl --repo ${{ github.repository }}