name: release on: workflow_dispatch: jobs: publish_pypi: name: "Publish package on PyPI" runs-on: ubuntu-20.04 if: github.ref == 'refs/heads/master' && github.repository == 'commaai/teleoprtc' steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v2 with: python-version: '3.11' - name: Bump version and tag run: | git config --global user.name "Vehicle Researcher" git config --global user.email "user@comma.ai" bash scripts/bump_tag.sh git push --no-verify --force-with-lease --tags origin master - name: Build and publish run: | bash scripts/publish_pypi.sh "${{ secrets.PYPI_PAT }}"