-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.04 KB
/
release.yaml
File metadata and controls
37 lines (33 loc) · 1.04 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
name: Build
on:
push:
permissions:
contents: write
id-token: write
jobs:
build:
name: Build and Inspect
runs-on: ubuntu-24.04
outputs:
package_name: ${{ steps.baipp.outputs.package_name }}
package_version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
- uses: hynek/build-and-inspect-python-package@c52c3a4710070b50470d903818a7b25115dcd076 # v2.13.0
id: baipp
publish:
name: Publish to PyPI
runs-on: ubuntu-24.04
needs: build
environment:
name: publishing
url: https://pypi.org/p/${{ needs.build.outputs.package_name }}/${{ needs.build.outputs.package_version }}
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0