Skip to content

Package and Documentation Release #21

Package and Documentation Release

Package and Documentation Release #21

Workflow file for this run

name: Release the Next Version of the Package and Documentation
on:
release:
types: [published]
jobs:
release-version:
runs-on: ubuntu-latest
steps:
- id: parse-version
name: Parse release version
run: |
echo "version=${RELEASE_VERSION/v/}" >> "$GITHUB_OUTPUT"
env:
RELEASE_VERSION: ${{ github.event.release.tag_name }}
outputs:
version: ${{ steps.parse-version.outputs.version }}
publish-test-pypi:
uses: ./.github/workflows/pypi.yml
with:
pypi_api_token: ${{ secrets.TEST_PYPI_API_TOKEN }}

Check failure on line 22 in .github/workflows/package_release.yml

View workflow run for this annotation

GitHub Actions / Release the Next Version of the Package and Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/package_release.yml (Line: 22, Col: 23): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.TEST_PYPI_API_TOKEN
repository_url: https://test.pypi.org/legacy/
test-test-pypi:
needs: [release-version, publish-test-pypi]
uses: ./.github/workflows/tests.yml
with:
install_command: "python3 -m pip install -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple gpu-tracker==${{ needs.release-version.outputs.version }}"
# - name: Publish package to PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}