Skip to content

Commit 2a06925

Browse files
committed
chore: removed skbuild and use trusted publisher workflow
1 parent 4fdfd2a commit 2a06925

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ name: Publish Python Package
22

33
on:
44
workflow_dispatch:
5-
release:
6-
types:
7-
- created
5+
push:
6+
tags:
7+
- "*"
88

99
jobs:
1010
publish:
1111
runs-on: ubuntu-latest
12+
environment:
13+
name: pypi
14+
url: https://pypi.org/p/open-text-embeddings
15+
permissions:
16+
id-token: write
1217
steps:
1318
- name: Checkout code
1419
uses: actions/checkout@v4
@@ -21,13 +26,11 @@ jobs:
2126
- name: Install Python dependencies
2227
run: |
2328
python -m pip install --upgrade pip
24-
pip install setuptools scikit-build
29+
pip install setuptools
2530
2631
- name: Build source distribution
2732
run: |
2833
python setup.py sdist
2934
3035
- name: Publish distribution to PyPI
3136
uses: pypa/gh-action-pypi-publish@release/v1
32-
with:
33-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)