Skip to content

chore: Update GitHub workflows #3

chore: Update GitHub workflows

chore: Update GitHub workflows #3

name: Publish package to TestPyPi
on:
push:
# disable for tests
# branches:
# - 'main'
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/test.yml
build:
uses: ./.github/workflows/build-dist.yml
publish-to-testpypi:
name: Publish to TestPyPI
needs: [test, 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/