Skip to content

Try to get the environment syntax correct #9

Try to get the environment syntax correct

Try to get the environment syntax correct #9

name: Publish to TestPyPI

Check failure on line 1 in .github/workflows/publish-to-testpypi.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-to-testpypi.yaml

Invalid workflow file

(Line: 19, Col: 5): Unexpected value 'uses', (Line: 20, Col: 5): Unexpected value 'with', (Line: 25, Col: 5): Unexpected value 'secrets', (Line: 12, Col: 5): Required property is missing: runs-on
on:
workflow_dispatch:
inputs:
version:
description: 'Version name for release'
required: true
jobs:
publish:
name: Publish wheel to TestPyPI
environment:
name: testpypi
url: https://test.pypi.org/p/seclab-taskflow-agent2
permissions:
contents: write
id-token: write # For trusted publishing
uses: .github/workflows/publish-reusable.yml@main
with:
version: ${{ inputs.version }}
release_notes: ${{ github.head_ref }}
repository_url: https://test.pypi.org/legacy/
environment: testpypi
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}