Skip to content

feat: Add GitHub workflows for building and publishing Python package… #1

feat: Add GitHub workflows for building and publishing Python package…

feat: Add GitHub workflows for building and publishing Python package… #1

name: Publish package to TestPyPi
on: [push, workflow_call]
jobs:
test:
uses: ./.github/workflows/test.yml
build:
uses: ./.github/workflows/build-dist.yml
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
- build
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/acoustic-tools
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/