Skip to content

Commit

Permalink
revert debug changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfeickert committed May 16, 2024
1 parent e298fa7 commit 1b0191c
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: publish distributions
on:
push:
# branches:
# - main
# tags:
# - v*
branches:
- main
tags:
- v*
pull_request:
branches:
- main
Expand Down Expand Up @@ -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-*"
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 1b0191c

Please sign in to comment.