Skip to content

Publish final pypi release #13

Publish final pypi release

Publish final pypi release #13

Workflow file for this run

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/checkout@v3.6.0
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 "renku@datascience.ch"
- 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