Skip to content

Package and Documentation Release #12

Package and Documentation Release

Package and Documentation Release #12

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: version
run: |
echo ${{ github.event.release.name }}
# RELEASE_VERSION=${{ github.event.release.tag_name }}
# echo "version=${RELEASE_VERSION/v/}" >> "$GITHUB_OUTPUT"
# outputs:
# version: ${{ steps.version.outputs.version }}
# publish-test-pypi:
# needs: release-version
# runs-on: ubuntu-latest
# steps:
# - name: Get release version
# run: |
# RELEASE_VERSION=${{ github.event.release.tag_name }}
# export RELEASE_VERSION=${RELEASE_VERSION/v/}
# echo "Publishing package for release version ${RELEASE_VERSION}"
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: '3.x'
# - name: Install dependencies
# run: |
# python3 -m pip install --upgrade pip
# python3 -m pip install build
# python3 -m pip install twine
# - name: Build package
# run: |
# echo "Building package of version ${RELEASE_VERSION}"
# python3 -m build
# - name: Check package
# run: python3 -m twine check dist/*
# - name: Publish package to Test-PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
# repository-url: https://test.pypi.org/legacy/
# test-test-pypi:
# needs: 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==${{ env.RELEASE_VERSION }}"
#
# - name: Publish package to PyPi
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# password: ${{ secrets.PYPI_API_TOKEN }}
#