File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -297,3 +297,61 @@ jobs:
297297 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
298298 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
299299 run : twine upload --skip-existing wheelhouse/*
300+
301+ publish :
302+ needs : [build]
303+ runs-on : ubuntu-latest
304+ if : startsWith(github.ref, 'refs/tags/')
305+ environment :
306+ name : release
307+ url : https://pypi.org/p/tcod
308+ permissions :
309+ id-token : write
310+ steps :
311+ - uses : actions/download-artifact@v3
312+ with :
313+ name : sdist
314+ path : dist/
315+ - uses : actions/download-artifact@v3
316+ with :
317+ name : wheels-windows
318+ path : dist/
319+ - uses : pypa/gh-action-pypi-publish@release/v1
320+ with :
321+ skip-existing : true
322+
323+ publish-macos :
324+ needs : [build-macos]
325+ runs-on : ubuntu-latest
326+ if : startsWith(github.ref, 'refs/tags/')
327+ environment :
328+ name : release
329+ url : https://pypi.org/p/tcod
330+ permissions :
331+ id-token : write
332+ steps :
333+ - uses : actions/download-artifact@v3
334+ with :
335+ name : wheels-macos
336+ path : dist/
337+ - uses : pypa/gh-action-pypi-publish@release/v1
338+ with :
339+ skip-existing : true
340+
341+ publish-linux :
342+ needs : [linux-wheels]
343+ runs-on : ubuntu-latest
344+ if : startsWith(github.ref, 'refs/tags/')
345+ environment :
346+ name : release
347+ url : https://pypi.org/p/tcod
348+ permissions :
349+ id-token : write
350+ steps :
351+ - uses : actions/download-artifact@v3
352+ with :
353+ name : wheels-linux
354+ path : dist/
355+ - uses : pypa/gh-action-pypi-publish@release/v1
356+ with :
357+ skip-existing : true
You can’t perform that action at this time.
0 commit comments