Skip to content
Myr

publish.yaml

This file

Path

.github/workflows/publish.yaml

47 lines · 1.5 KiB · YAML

Last changed by

landed by oscabriel5ef7011

History of this file

Take it

Merge branch '3.1.x'David Lordbefore adoption96a83e9

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

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

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

Merge branch '3.1.x'David Lordbefore adoption96a83e9

lines 5–8why, one step back
5jobs:
6 build:7 runs-on: ubuntu-latest8 steps:

Merge branch 'stable'David Lordbefore adoptionee6c734

line 9why, one step back
9 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

line 10why, one step back
10 - uses: astral-sh/setup-uv@f0ec1fc3b38f5e7cd731bb6ce540c5af426746bb # v6.1.0

Merge branch '3.1.x'David Lordbefore adoption96a83e9

line 11why, one step back
11 with:

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 12–16why, one step back
12 enable-cache: true
13 prune-cache: false14 - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.015 with:16 python-version-file: pyproject.toml

Merge branch '3.1.x'David Lordbefore adoption96a83e9

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

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 18–19why, one step back
18 - run: uv build
19 - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

Merge branch '3.1.x'David Lordbefore adoption96a83e9

lines 20–22why, one step back
20 with:
21 path: ./dist22 create-release:23 needs: [build]

Merge branch '3.1.x'David Lordbefore adoption96a83e9

lines 24–27why, one step back
24 runs-on: ubuntu-latest
25 permissions:26 contents: write27 steps:

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

line 28why, one step back
28 - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

Merge branch '3.1.x'David Lordbefore adoption96a83e9

lines 29–31why, one step back
29 - name: create release
30 run: >31 gh release create --draft --repo ${{ github.repository }}32 ${{ github.ref_name }} artifact/*

Merge branch '3.1.x'David Lordbefore adoption96a83e9

lines 33–35why, one step back
33 env:
34 GH_TOKEN: ${{ github.token }}35 publish-pypi:36 needs: [build]

Merge branch '3.1.x'David Lordbefore adoptionde61312

lines 37–39why, one step back
37 environment:
38 name: publish39 url: https://pypi.org/project/Jinja2/${{ github.ref_name }}

Merge branch '3.1.x'David Lordbefore adoption96a83e9

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

Merge branch '3.1.x'David Lordbefore adoption3fd91e4

lines 41–42why, one step back
41 permissions:
42 id-token: write

Merge branch '3.1.x'David Lordbefore adoption96a83e9

line 43why, one step back
43 steps:

Updated dependency management to uv (#2093)David Lordbefore adoption05f5d74

lines 44–45why, one step back
44 - uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
45 - uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4

Merge branch '3.1.x'David Lordbefore adoption96a83e9

line 46why, one step back
46 with:

Revert "upload/download-artifact v4"David Lordbefore adoption2a17038

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