File tree 1 file changed +24
-8
lines changed
1 file changed +24
-8
lines changed Original file line number Diff line number Diff line change 5
5
types : [created]
6
6
7
7
jobs :
8
- deploy :
8
+ build :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v4
12
- - name : Set up Python 3.8
12
+ - name : Set up Python 3.9
13
13
uses : actions/setup-python@v5
14
14
with :
15
- python-version : 3.8
15
+ python-version : 3.9
16
16
- name : Install build dependencies
17
17
run : |
18
18
python -m pip install --upgrade pip wheel build
19
19
- name : Build package
20
20
run : |
21
21
python -m build
22
- - name : Publish a Python distribution to PyPI
23
-
22
+ - name : Upload Artifact
23
+ uses : actions/upload-artifact@v4
24
24
with :
25
- user : __token__
26
- password : ${{ secrets.PYPI_UPLOAD_API_TOKEN }}
27
-
25
+ name : docstring-to-markdown dist ${{ github.run_number }}
26
+ path : ./dist
27
+ pypi-publish :
28
+ name : Upload release to PyPI
29
+ runs-on : ubuntu-latest
30
+ needs : [build]
31
+ environment :
32
+ name : pypi
33
+ url : https://pypi.org/p/docstring-to-markdown
34
+ permissions :
35
+ id-token : write
36
+ steps :
37
+ - name : Download artifacts
38
+ uses : actions/download-artifact@v4
39
+ with :
40
+ name : docstring-to-markdown dist ${{ github.run_number }}
41
+ path : ./dist
42
+ - name : Publish package distributions to PyPI
43
+ uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments