Skip to content

Merge branch 'main' of github.com:rivalsec/pathbuster into asyncio #23

Merge branch 'main' of github.com:rivalsec/pathbuster into asyncio

Merge branch 'main' of github.com:rivalsec/pathbuster into asyncio #23

name: Publish to PyPI and TestPyPI
on: push
jobs:
build-n-publish:
name: Build and publish PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install pypa/build
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
# - name: Publish distribution to Test PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# skip-existing: true
- name: Publish distribution to PyPI (only on tags)
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}