Publish final pypi release #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish final pypi release" | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: New release version (e.g. '2.3.1') | |
type: string | |
required: true | |
jobs: | |
finalize-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
token: "${{ secrets.RENKUBOT_GITHUB_TOKEN }}" | |
ref: 'refs/tags/v${{ github.event.inputs.version }}' | |
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install poetry poetry-lock-package twine | |
poetry self add "poetry-dynamic-versioning[plugin]" | |
poetry install -E service --with dev,tests,docs | |
git config --global --add user.name "Renku Bot" | |
git config --global --add user.email "[email protected]" | |
- name: Build and publish to pypi | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: make publish-package | |
- name: Build and publish lock package | |
env: | |
POETRY_VIRTUALENVS_CREATE: false | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: make publish-lock-package |