Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,31 @@ jobs:
name: release
url: https://pypi.org/p/babel/
permissions:
id-token: write # Required for Trusted Publishing action
contents: write # Required for creating the GitHub release
id-token: write # Required for Trusted Publishing action and attestations
attestations: write # Required for build provenance attestations
artifact-metadata: write # Required for build provenance attestations
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: dist
path: dist/
- name: Generate SLSA build provenance attestations
id: attest
uses: actions/attest@1e69f48acb82d1966a394da916b4c1698aa569d6 # v4.2.2
with:
subject-path: 'dist/*'
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1
with:
verbose: true
print-hash: true
- name: Create draft GitHub release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
TAG: ${{ github.ref_name }}
BUNDLE_PATH: ${{ steps.attest.outputs.bundle-path }}
run: |
cp "$BUNDLE_PATH" "dist/babel-${TAG#v}.intoto.jsonl"
gh release create "$TAG" --draft --verify-tag --title "$TAG" dist/*.whl dist/*.tar.gz dist/*.intoto.jsonl
Loading