Skip to content

Update workflow formatting #23

Update workflow formatting

Update workflow formatting #23

name: Publish a release to TestPyPI
on:
push:
branches: [ test-release ]
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
jobs:
# the tests must pass before release is to be made
test:
name: Run unit tests on a branch
uses: avstack-lab/workflows/.github/workflows/test_on_branch_with_uv.yml@main
with:
branch: $BRANCH_NAME
os: ubuntu-22.04
python-versions: "3.10"
# now we run the publishing protocol
publish:
name: Run publishing protocol
needs: test
uses: avstack-lab/workflows/.github/workflows/publish_to_index.yml@main
with:
os: ubuntu-22.04
python-version: "3.10"
uv-version: "0.6.14"
token: ${{ secrets.TESTPYPI_API_TOKEN }}

Check failure on line 29 in .github/workflows/publish_to_test_pypi.yml

View workflow run for this annotation

GitHub Actions / Publish a release to TestPyPI

Invalid workflow file

The workflow is not valid. .github/workflows/publish_to_test_pypi.yml (Line: 29, Col: 14): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.TESTPYPI_API_TOKEN
index: "testpypi"