Skip to content

Commit 3dfba42

Browse files
authored
Fix publish (#146)
1 parent fb2d080 commit 3dfba42

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

.github/workflows/publish.yaml

+6-11
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
push:
66
tags: v[0-9]+.[0-9]+.[0-9]+
77

8-
workflow_dispatch:
9-
10-
118

129
jobs:
1310
build:
@@ -34,23 +31,21 @@ jobs:
3431
# TODO: Add logic to do github release too here
3532

3633
publish:
37-
name: Publish to TestPyPI
34+
name: Publish to PyPI
3835
runs-on: ubuntu-latest
36+
needs:
37+
- build
3938
environment:
40-
# name: pypi
41-
name: testpypi
39+
name: pypi
4240
url: https://pypi.org/project/pyscript
4341
permissions:
44-
id-token: ${{ secrets.PYPI_TOKEN }}
42+
id-token: write
4543

4644
steps:
4745
- name: Download all the dists
48-
uses: actions/download-artifacts@v3
46+
uses: actions/download-artifact@v3
4947
with:
5048
name: python-package-distributions
5149
path: dist/
5250
- name: Publish release to PyPI
5351
uses: pypa/gh-action-pypi-publish@release/v1
54-
# This is for testing
55-
with:
56-
repository-url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)