X Tutup
Skip to content

Commit f573df5

Browse files
committed
feat: add pypi workflow
1 parent 21d0f06 commit f573df5

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/release-to-pypi.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to Test PyPI
1+
name: Publish to PyPI
22

33
on:
44
push:
@@ -9,6 +9,10 @@ jobs:
99
deploy:
1010
name: Build and Publish to PyPI
1111
runs-on: ubuntu-latest
12+
environment: pypi-universalpython
13+
14+
permissions:
15+
id-token: write
1216

1317
steps:
1418
- uses: actions/checkout@v4
@@ -26,8 +30,5 @@ jobs:
2630
- name: Build package
2731
run: python -m build
2832

29-
- name: Publish to Test PyPI
30-
env:
31-
TWINE_USERNAME: __token__
32-
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
33-
run: twine upload --repository testpypi dist/*
33+
- name: Publish to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "universalpython"
7-
version = "0.1.3"
7+
version = "0.1.4"
88
authors = [
99
{name = "Saad Bazaz", email = "saadbazaz@hotmail.com"},
1010
]

0 commit comments

Comments
 (0)
X Tutup