Skip to content
Myr

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 file

Take it

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 1–11why, one step back
1name: Publish
2on: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 back
12 - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744

Bump actions/setup-python from 4.6.1 to 4.7.0 (#5212)David Lordbefore adoption6a5277d

line 13why, one step back
13 - uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 14–15why, one step back
14 with:
15 python-version: '3.x'

use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa

lines 16–17why, one step back
16 cache: pip
17 cache-dependency-path: requirements*/*.txt

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 18–29why, one step back
18 - run: pip install -r requirements/build.txt
19 # 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 back
30 needs: [build]

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 31–35why, one step back
31 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 back
36 uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v1.9.0

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 37–41why, one step back
37 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 back
42 needs: [provenance]

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 43–55why, one step back
43 runs-on: ubuntu-latest
44 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 back
56 needs: [provenance]

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 57–58why, one step back
57 # Wait for approval before attempting to upload to PyPI. This allows reviewing the
58 # files in the draft release.

use pip-compile instead of pip-compile-multiDavid Lordbefore adoption59fd6aa

line 59why, one step back
59 environment: publish

Merge branch '2.2.x'David Lordbefore adoptionef85270

line 60why, one step back
60 runs-on: ubuntu-latest

Merge pull request #5059 from pallets/oidc-publishDavid Lordbefore adoption49498a3

lines 61–62why, one step back
61 permissions:
62 id-token: write

Merge branch '2.2.x'David Lordbefore adoptionef85270

lines 63–64why, one step back
63 steps:
64 - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a

Bump pypa/gh-action-pypi-publish from 1.8.8 to 1.8.10 (#5248)David Lordbefore adoption8037487

line 65why, one step back
65 - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e

Merge branch '2.2.x'David Lordbefore adoptionef85270

line 66why, one step back
66 with:

Merge branch '2.3.x'David Lordbefore adoptiond0bf462

lines 67–68why, one step back
67 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 back
69 - uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e

Merge branch '2.2.x'David Lordbefore adoptionef85270

line 70why, one step back
70 with:

Merge branch '2.3.x'David Lordbefore adoptiond0bf462

line 71why, one step back
71 packages-dir: artifact/