File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
release :
6
6
types : [created]
7
-
7
+
8
8
jobs :
9
9
build-n-publish :
10
10
name : Build and publish Python 🐍 distributions 📦 to PyPI
11
11
runs-on : ubuntu-latest
12
-
12
+ # needs: [test]
13
+ environment : release
14
+ permissions :
15
+ id-token : write
13
16
steps :
14
- - uses : actions/checkout@v3.0.2
17
+ - uses : actions/checkout@v4
15
18
16
19
- name : Set up Python
17
- uses : actions/setup-python@v3.1.2
20
+ uses : actions/setup-python@v5
18
21
with :
19
22
python-version : 3.9
23
+ cache : pip
24
+ cache-dependency-path : ' **/pyproject.toml'
20
25
21
26
- name : Install Poetry
22
27
run : pip install poetry poetry-dynamic-versioning
23
-
28
+
24
29
- name : Install dependencies
25
30
run : poetry install --no-interaction
26
31
27
32
- name : Build source and wheel archives
28
33
run : poetry build
29
34
30
- - name : Publish distribution 📦 to PyPI
31
-
32
- with :
33
- user : __token__
34
- password : ${{ secrets.PYPI_TOKEN }}
35
-
36
-
35
+ - name : Publish
36
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments