File tree Expand file tree Collapse file tree 1 file changed +19
-35
lines changed
Expand file tree Collapse file tree 1 file changed +19
-35
lines changed Original file line number Diff line number Diff line change 1- name : Publish with Dynamic Versioning
1+ name : Build
22
33on :
4- release :
5- types : [published]
4+ push :
65
76permissions :
87 contents : write
98 id-token : write
109
1110jobs :
12- publish :
13- name : Publish to PyPI
11+ build :
1412 runs-on : ubuntu-latest
15- environment : publishing
16- env :
17- PIP_CONSTRAINT : .github/workflows/constraints.txt
1813 steps :
19- - name : Checkout code
20- uses : actions/checkout@v4
14+ - uses : actions/checkout@v4
2115 with :
2216 fetch-depth : 0
17+ - uses : hynek/build-and-inspect-python-package@v2
2318
24- - name : Set up Python
25- uses : actions/setup-python@v5
19+ publish :
20+ runs-on : ubuntu-latest
21+ needs : build
22+ environment :
23+ name : publishing
24+ url : https://pypi.org/project/tap-socketdev
25+ if : startsWith(github.ref, 'refs/tags/')
26+ steps :
27+ - uses : actions/download-artifact@v4
2628 with :
27- python-version : " 3.11"
28-
29- - name : Upgrade pip
30- run : |
31- pip install pip
32- pip --version
33-
34- - name : Install Poetry
35- run : |
36- pipx install poetry
37- pipx inject poetry poetry-dynamic-versioning[plugin]
38- poetry --version
39- poetry self show plugins
40-
41- - name : Build
42- run : poetry build
43-
44- - name : Upload wheel to release
45- uses : svenstaro/upload-release-action@v2
29+ name : Packages
30+ path : dist
31+ - uses : svenstaro/upload-release-action@v2
4632 with :
47- file : dist/*.whl
33+ file : dist/*
4834 tag : ${{ github.ref }}
4935 overwrite : true
5036 file_glob : true
51-
52- - name : Publish
53- uses : pypa/gh-action-pypi-publish@v1.8.11
37+ - uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments