Debian Codegraph @

.github/workflows/release.yml

raw
1 name: release
2 on:
3 push:
4 paths:
5 - "certipy/version.py"
6 branches:
7 - main
8
9 jobs:
10 release-build:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v4
14
15 - uses: actions/setup-python@v5
16 with:
17 python-version: "3.x"
18
19 - name: build release distributions
20 run: |
21 python -m pip install build
22 python -m build
23
24 - name: upload dists
25 uses: actions/upload-artifact@v4
26 with:
27 name: release-dists
28 path: dist/
29
30 pypi-publish:
31 runs-on: ubuntu-latest
32 environment:
33 name: Release
34 needs:
35 - release-build
36 permissions:
37 id-token: write
38
39 steps:
40 - name: Retrieve release distributions
41 uses: actions/download-artifact@v4
42 with:
43 name: release-dists
44 path: dist/
45
46 - name: Publish release distributions to PyPI
47 uses: pypa/gh-action-pypi-publish@release/v1