Skip to content

Commit f476c03

Browse files
committed
Fix release workflow
1 parent 7ee30e9 commit f476c03

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/release.yml

+20-8
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
4040
- uses: actions/upload-artifact@v4
4141
with:
42-
name: dist
43-
path: dist/
42+
name: dist-version
43+
path: dist/VERSION
4444

4545
build-sdist:
4646
needs: validate-release-request
@@ -67,7 +67,7 @@ jobs:
6767
6868
- uses: actions/upload-artifact@v4
6969
with:
70-
name: dist
70+
name: dist-sdist
7171
path: dist/*.tar.*
7272

7373
build-wheels-matrix:
@@ -127,9 +127,18 @@ jobs:
127127

128128
- uses: actions/upload-artifact@v4
129129
with:
130-
name: dist
130+
name: dist-wheels
131131
path: wheelhouse/*.whl
132132

133+
merge-artifacts:
134+
runs-on: ubuntu-latest
135+
needs: [build-sdist, build-wheels]
136+
steps:
137+
- name: Merge Artifacts
138+
uses: actions/upload-artifact/merge@v4
139+
with:
140+
name: dist
141+
133142
publish-docs:
134143
needs: [build-sdist, build-wheels]
135144
runs-on: ubuntu-latest
@@ -180,6 +189,12 @@ jobs:
180189
needs: [build-sdist, build-wheels, publish-docs]
181190
runs-on: ubuntu-latest
182191

192+
environment:
193+
name: pypi
194+
url: https://pypi.org/p/asyncpg
195+
permissions:
196+
id-token: write
197+
183198
steps:
184199
- uses: actions/checkout@v4
185200
with:
@@ -223,7 +238,4 @@ jobs:
223238
- name: Upload to PyPI
224239
uses: pypa/gh-action-pypi-publish@release/v1
225240
with:
226-
user: __token__
227-
password: ${{ secrets.PYPI_TOKEN }}
228-
# password: ${{ secrets.TEST_PYPI_TOKEN }}
229-
# repository_url: https://test.pypi.org/legacy/
241+
attestations: true

0 commit comments

Comments
 (0)