We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 291c174 commit 2e65d8cCopy full SHA for 2e65d8c
.github/workflows/publish.yml
@@ -0,0 +1,36 @@
1
+name: Publish to PyPI
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+permissions:
8
+ contents: read
9
+ id-token: write
10
11
+jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ environment:
15
+ name: pypi
16
+ url: https://pypi.org/p/nanocli
17
18
+ steps:
19
+ - uses: actions/checkout@v4
20
21
+ - name: Install uv
22
+ uses: astral-sh/setup-uv@v4
23
24
+ - name: Set up Python
25
+ run: uv python install 3.12
26
27
+ - name: Install dependencies
28
+ run: uv sync --all-extras
29
30
+ - name: Build package
31
+ run: uv build
32
33
+ - name: Publish to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
35
+ with:
36
+ packages-dir: dist/
0 commit comments