Skip to content

Commit 6bb2541

Browse files
committed
pypi trusted publisher
1 parent df1800a commit 6bb2541

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
jobs:
88
deploy:
99
runs-on: ubuntu-latest
10+
# Add permissions needed for trusted publishing
11+
permissions:
12+
id-token: write
13+
1014
steps:
1115
- uses: actions/checkout@v4
1216
- name: Set up Python
@@ -16,11 +20,9 @@ jobs:
1620
- name: Install dependencies
1721
run: |
1822
python -m pip install --upgrade pip
19-
pip install build twine
20-
- name: Build and publish
21-
env:
22-
TWINE_USERNAME: __token__
23-
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
24-
run: |
25-
python -m build
26-
twine upload dist/*
23+
pip install build
24+
# Replace twine upload with trusted publisher action
25+
- name: Build package
26+
run: python -m build
27+
- name: Publish package
28+
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 = "inferencesh"
7-
version = "0.1.2"
7+
version = "0.1.4"
88
description = "inference.sh Python SDK"
99
authors = [
1010
{name = "Inference Shell Inc.", email = "hello@inference.sh"},

0 commit comments

Comments
 (0)