Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,16 @@ jobs:

runs-on: ubuntu-latest

steps:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install twine==6.0.1
permissions:
id-token: write # Required for OIDC trusted publishing
actions: read # Required for actions/download-artifact
contents: read # Required for repository access

environment:
name: publish
url: https://pypi.org/p/singlestoredb

steps:
- name: Download Linux wheels and sdist
uses: actions/download-artifact@v4
with:
Expand All @@ -180,14 +184,9 @@ jobs:
name: artifacts-macOS
path: dist

- name: Publish PyPI package
- name: Publish to PyPI
if: ${{ github.event_name == 'release' || github.event.inputs.publish_pypi == 'true' }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: "${{ secrets.PYPI_TOKEN }}"
run: |
ls ./dist/*
twine upload ./dist/*
uses: pypa/gh-action-pypi-publish@release/v1

# - name: Publish Conda package
# if: ${{ github.event_name == 'release' || github.event.inputs.publish_anaconda == 'true' }}
Expand Down
Loading