Skip to content

Package and Documentation Release #25

Package and Documentation Release

Package and Documentation Release #25

Workflow file for this run

name: Package and Documentation Release
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:
repository_url: https://test.pypi.org/legacy/
secrets:
API_TOKEN: ${{ secrets.TEST_PYPI_API_TOKEN }}
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 icikt==${{ needs.release-version.outputs.version }}"
# publish-pypi:
# needs: test-test-pypi
# uses: ./.github/workflows/pypi.yml
# with:
# repository_url: https://upload.pypi.org/legacy/
# secrets:
# API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# test-pypi:
# needs: [release-version, publish-pypi]
# uses: ./.github/workflows/tests.yml
# with:
# install_command: "python3 -m pip install <package-name>==${{ needs.release-version.outputs.version }}"
# publish-documentation:
# needs: test-pypi
# uses: ./.github/workflows/documentation.yml