forked from litl/backoff
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (30 loc) · 996 Bytes
/
build.yaml
File metadata and controls
34 lines (30 loc) · 996 Bytes
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
name: Build
on:
push:
tags: ["*"]
jobs:
build:
name: Build wheel and sdist
runs-on: ubuntu-24.04
outputs:
name: ${{ steps.baipp.outputs.package_name }}
version: ${{ steps.baipp.outputs.package_version }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: hynek/build-and-inspect-python-package@fe0a0fb1925ca263d076ca4f2c13e93a6e92a33e # v2.17.0
id: baipp
publish:
name: Publish to PyPI
runs-on: ubuntu-24.04
needs: [build]
environment:
name: pypi
url: https://pypi.org/project/${{ needs.build.outputs.name }}/${{ needs.build.outputs.version }}
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: Packages
path: dist
- uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0