Skip to content

Commit

Permalink
does this work
Browse files Browse the repository at this point in the history
  • Loading branch information
jackvreeken committed Jan 28, 2025
1 parent 53e69d2 commit e4385dc
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/rtc-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ jobs:
needs: [test-linux, examples-linux]
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}
permissions:
id-token: write # Required for OIDC PyPI publishing
contents: read
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -111,18 +114,10 @@ jobs:
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install build
- name: Build package
run: python -m build

- name: Publish package to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
twine upload dist/*
else
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
fi
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e4385dc

Please sign in to comment.