Repository navigation
56 lines (56 loc) · 1.82 KB
/
Copy pathrelease.yaml
File metadata and controls
56 lines (56 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: 🚀 Release to PyPI
on:
push:
tags: ["*"]
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
build:
name: 🏗️ Build
uses: tox-dev/github-workflows/.github/workflows/validate-python-release.yaml@9334311ad92f91f7f5c937b3ab218da4d317116e # 6.8.4
permissions:
contents: read
github-notes:
name: 📝 Render GitHub Release notes
uses: tox-dev/github-workflows/.github/workflows/release-notes.yaml@9334311ad92f91f7f5c937b3ab218da4d317116e # 6.8.4
permissions:
contents: read
with:
tag: ${{ github.ref_name }}
changelog: docs/changelog.rst
artifact-url: https://pypi.org/project/pyproject-api/${{ github.ref_name }}/
release:
name: 🚀 Publish to PyPI
needs: [build, github-notes]
runs-on: ubuntu-26.04
environment:
name: release
url: https://pypi.org/project/pyproject-api/${{ github.ref_name }}
permissions:
id-token: write
steps:
- name: 📩 Download distributions
uses: actions/download-artifact@v8.0.2
with:
artifact-ids: ${{ needs.build.outputs.distributions-artifact-id }}
path: dist/
- name: 🚀 Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.14.3
with:
packages-dir: dist
attestations: true
github-release:
name: 🚀 Publish GitHub Release
needs: [build, release, github-notes]
uses: tox-dev/github-workflows/.github/workflows/github-release.yaml@9334311ad92f91f7f5c937b3ab218da4d317116e # 6.8.4
permissions:
contents: write
with:
project: pyproject-api
version: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
artifact-pattern: python-package-distributions
notes-artifact-id: ${{ needs.github-notes.outputs.artifact-id }}