publish.yaml
This file
Path
.github/workflows/publish.yaml
71 lines · 2.5 KiB · YAML
Last changed by
use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa
History of this fileTake it
Merge branch '2.2.x'David Lordbefore adoptionef85270
lines 1–11why, one step back1name: Publish2on:3 push:4 tags:5 - '*'6jobs:7 build:8 runs-on: ubuntu-latest9 outputs:10 hash: ${{ steps.hash.outputs.hash }}11 steps:Bump actions/checkout from 3.5.3 to 3.6.0 (#5246)David Lordbefore adoptionecc4a38
line 12why, one step back12 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744Bump actions/setup-python from 4.6.1 to 4.7.0 (#5212)David Lordbefore adoption6a5277d
line 13why, one step back13 - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1Merge branch '2.2.x'David Lordbefore adoptionef85270
lines 14–15why, one step back14 with:15 python-version: '3.x'use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa
lines 16–17why, one step back16 cache: pip17 cache-dependency-path: requirements*/*.txtMerge branch '2.2.x'David Lordbefore adoptionef85270
lines 18–29why, one step back18 - run: pip install -r requirements/build.txt19 # Use the commit date instead of the current date during the build.20 - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV21 - run: python -m build22 # Generate hashes used for provenance.23 - name: generate hash24 id: hash25 run: cd dist && echo "hash=$(sha256sum * | base64 -w0)" >> $GITHUB_OUTPUT26 - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce27 with:28 path: ./dist29 provenance:use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa
line 30why, one step back30 needs: [build]Merge branch '2.2.x'David Lordbefore adoptionef85270
lines 31–35why, one step back31 permissions:32 actions: read33 id-token: write34 contents: write35 # Can't pin with hash due to how this workflow works.Bump slsa-framework/slsa-github-generator from 1.7.0 to 1.9.0 (#5247)David Lordbefore adoptione8076d9
line 36why, one step back36 uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0Merge branch '2.2.x'David Lordbefore adoptionef85270
lines 37–41why, one step back37 with:38 base64-subjects: ${{ needs.build.outputs.hash }}39 create-release:40 # Upload the sdist, wheels, and provenance to a GitHub release. They remain41 # available as build artifacts for a while as well.use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa
line 42why, one step back42 needs: [provenance]Merge branch '2.2.x'David Lordbefore adoptionef85270
lines 43–55why, one step back43 runs-on: ubuntu-latest44 permissions:45 contents: write46 steps:47 - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a48 - name: create release49 run: >50 gh release create --draft --repo ${{ github.repository }}51 ${{ github.ref_name }}52 *.intoto.jsonl/* artifact/*53 env:54 GH_TOKEN: ${{ github.token }}55 publish-pypi:use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa
line 56why, one step back56 needs: [provenance]Merge branch '2.2.x'David Lordbefore adoptionef85270
lines 57–58why, one step back57 # Wait for approval before attempting to upload to PyPI. This allows reviewing the58 # files in the draft release.use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa
line 59why, one step back59 environment: publishMerge branch '2.2.x'David Lordbefore adoptionef85270
line 60why, one step back60 runs-on: ubuntu-latestMerge pull request #5059 from pallets/oidc-publishDavid Lordbefore adoption49498a3
lines 61–62why, one step back61 permissions:62 id-token: writeMerge branch '2.2.x'David Lordbefore adoptionef85270
lines 63–64why, one step back63 steps:64 - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8aBump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 (#5248)David Lordbefore adoption8037487
line 65why, one step back65 - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240eMerge branch '2.2.x'David Lordbefore adoptionef85270
line 66why, one step back66 with:Merge branch '2.3.x'David Lordbefore adoptiond0bf462
lines 67–68why, one step back67 repository-url: https://test.pypi.org/legacy/68 packages-dir: artifact/Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 (#5248)David Lordbefore adoption8037487
line 69why, one step back69 - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240eMerge branch '2.2.x'David Lordbefore adoptionef85270
line 70why, one step back70 with:Merge branch '2.3.x'David Lordbefore adoptiond0bf462
line 71why, one step back71 packages-dir: artifact/