Skip to content
Myr

publish.yaml

This file

Path

.github/workflows/publish.yaml

62 lines · 2.0 KiB · YAML

Last changed by

Merge branch 'stable'David Lordbefore adoption6a2f545

History of this file

Take it

The walk stopped after 200 commits: lines older than 73739a2 point at it.

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 1–3why, one step back
1name: Publish
2on:3 push:

Merge branch 'stable'David Lordbefore adoptionbc14349

line 4why, one step back
4 tags: ['*']

Merge branch 'stable'David Lordbefore adoption4cae5d8

lines 5–8why, one step back
5permissions: {}
6concurrency:7 group: publish-${{ github.event.push.ref }}8 cancel-in-progress: true

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 9–11why, one step back
9jobs:
10 build:11 runs-on: ubuntu-latest

Merge branch 'stable'David Lordbefore adoption3301232

lines 12–13why, one step back
12 outputs:
13 artifact-id: ${{ steps.upload-artifact.outputs.artifact-id }}

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 14why, one step back
14 steps:

Merge branch 'stable'David Lordbefore adoption6a2f545

line 15why, one step back
15 - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

Merge branch 'stable'David Lordbefore adoptionbc14349

line 16why, one step back
16 with:

Merge branch 'stable'David Lordbefore adoption3301232

line 17why, one step back
17 persist-credentials: false

Merge branch 'stable'David Lordbefore adoption6a2f545

line 18why, one step back
18 - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0

Merge branch 'stable'David Lordbefore adoption3301232

line 19why, one step back
19 with:

Merge branch 'stable'David Lordbefore adoption4cae5d8

line 20why, one step back
20 enable-cache: false

Merge branch 'stable'David Lordbefore adoptionbc14349

line 21why, one step back
21 prune-cache: false

Merge branch 'stable'David Lordbefore adoption6a2f545

line 22why, one step back
22 - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 23why, one step back
23 with:

Merge branch 'stable'David Lordbefore adoptionbc14349

line 24why, one step back
24 python-version-file: pyproject.toml

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 25why, one step back
25 - run: echo "SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct)" >> $GITHUB_ENV

Merge branch 'stable'David Lordbefore adoptionbc14349

line 26why, one step back
26 - run: uv build

Merge branch 'stable'David Lordbefore adoption6a2f545

line 27why, one step back
27 - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

Merge branch 'stable'David Lordbefore adoption3301232

line 28why, one step back
28 id: upload-artifact

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 29why, one step back
29 with:

Merge branch 'stable'David Lordbefore adoption3301232

lines 30–32why, one step back
30 name: dist
31 path: dist/32 if-no-files-found: error

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 33why, one step back
33 create-release:

Merge branch 'stable'David Lordbefore adoptione974128

line 34why, one step back
34 needs: [build]

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 35–38why, one step back
35 runs-on: ubuntu-latest
36 permissions:37 contents: write38 steps:

Merge branch 'stable'David Lordbefore adoptione4e4bf6

line 39why, one step back
39 - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

Merge branch 'stable'David Lordbefore adoption3301232

lines 40–42why, one step back
40 with:
41 artifact-ids: ${{ needs.build.outputs.artifact-id }}42 path: dist/

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 43why, one step back
43 - name: create release

Merge branch 'stable'David Lordbefore adoption4cae5d8

line 44why, one step back
44 run: gh release create --draft --repo ${GITHUB_REPOSITORY} ${GITHUB_REF_NAME} dist/*

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 45–47why, one step back
45 env:
46 GH_TOKEN: ${{ github.token }}47 publish-pypi:

Merge branch 'stable'David Lordbefore adoptione974128

line 48why, one step back
48 needs: [build]

Use per-release URLs in GH env UI when publishing to the PyPI (#5423)David Lordbefore adoption98a7f9f

lines 49–50why, one step back
49 environment:
50 name: publish

Merge branch '3.0.x'David Lordbefore adoption6ab71ed

line 51why, one step back
51 url: https://pypi.org/project/Flask/${{ github.ref_name }}

Merge branch '2.2.x'David Lordbefore adoption73739a2

lines 52–55why, one step back
52 runs-on: ubuntu-latest
53 permissions:54 id-token: write55 steps:

Merge branch 'stable'David Lordbefore adoptione4e4bf6

line 56why, one step back
56 - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1

Merge branch 'stable'David Lordbefore adoption3301232

lines 57–59why, one step back
57 with:
58 artifact-ids: ${{ needs.build.outputs.artifact-id }}59 path: dist/

Merge branch 'stable'David Lordbefore adoption6a2f545

line 60why, one step back
60 - uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2

Merge branch '2.2.x'David Lordbefore adoption73739a2

line 61why, one step back
61 with:

Merge branch 'stable'David Lordbefore adoption3301232

line 62why, one step back
62 packages-dir: "dist/"