Skip to content

Commit

Permalink
go live to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlemec committed Oct 14, 2024
1 parent c9dbe7c commit 558b8f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to TestPyPI
name: Publish to PyPI

on: push

Expand Down Expand Up @@ -30,16 +30,16 @@ jobs:
name: python-package-distributions
path: dist/

publish-to-testpypi:
name: Publish distribution to TestPyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to TestPyPI on tag pushes
publish-to-pypi:
name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/gadget
name: pypi
url: https://pypi.org/p/gadget

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
Expand All @@ -50,8 +50,5 @@ jobs:
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to TestPyPI
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
verbose: true
2 changes: 1 addition & 1 deletion gadget/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
from .ggml import GGMLQuantizationType as T
from .tensor import get_tensor_info

__version__ = "0.4.3"
__version__ = "0.4.4"

0 comments on commit 558b8f0

Please sign in to comment.