File tree Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Expand file tree Collapse file tree 1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,33 @@ name: build and publish
2
2
3
3
on :
4
4
release :
5
- types : [created]
5
+ types :
6
+ - published
7
+ workflow_dispatch :
6
8
7
9
jobs :
8
- build :
10
+ deploy :
9
11
runs-on : ubuntu-latest
10
12
steps :
11
- - uses : actions/checkout@v3
12
- - name : Build and publish to pypi
13
-
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Install uv
16
+ uses : astral-sh/setup-uv@v3
17
+ with :
18
+ enable-cache : true
19
+
20
+ - name : Set up Python
21
+ uses : actions/setup-python@v5
14
22
with :
15
- poetry_version : " ==1.8.2"
16
- pypi_token : ${{ secrets.PYPI_API_TOKEN_FASTMETEO }}
23
+ python-version : " 3.11"
24
+
25
+ - name : Build packages
26
+ run : |
27
+ uvx --with hatch-vcs hatchling build
28
+
29
+ - name : Publish a Python distribution to PyPI
30
+ uses : pypa/gh-action-pypi-publish@release/v1
31
+ with :
32
+ user : __token__
33
+ password : ${{ secrets.PYPI_API_TOKEN_FASTMETEO }}
34
+
You can’t perform that action at this time.
0 commit comments