Repository navigation
56 lines (56 loc) · 1.79 KB
/
Copy pathrelease.yaml
File metadata and controls
56 lines (56 loc) · 1.79 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@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
permissions:
contents: read
notes:
name: 📝 Render GitHub Release notes
uses: tox-dev/github-workflows/.github/workflows/release-notes.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
permissions:
contents: read
with:
tag: ${{ github.ref_name }}
changelog: docs/changelog.rst
artifact-url: https://pypi.org/project/python-discovery/${{ github.ref_name }}/
release:
name: 🚀 Publish to PyPI
needs: [build, notes]
runs-on: ubuntu-26.04
environment:
name: release
url: https://pypi.org/project/python-discovery/${{ 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
github-release:
name: 🚀 Publish GitHub Release
needs: [build, notes, release]
uses: tox-dev/github-workflows/.github/workflows/github-release.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
permissions:
contents: write
with:
project: python-discovery
version: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
artifact-pattern: python-package-distributions
notes-artifact-id: ${{ needs.notes.outputs.artifact-id }}
title-prefix: v