Skip to content

BUMP: version 3.2.1 → 3.2.2 #4

BUMP: version 3.2.1 → 3.2.2

BUMP: version 3.2.1 → 3.2.2 #4

Workflow file for this run

name: Release package to Pypi
on:
push:
tags:
- '[0-9].[0-9]+.[0-9]+**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: latest
virtualenvs-in-project: true
virtualenvs-create: true
- name: Install Dependencies
run: |
./scripts/install
- name: Release
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
./scripts/release
- name: Current version
id: getversion
run: |
export CURRENT_VERSION=$(poetry run cz version -p)
echo "VERSION=$CURRENT_VERSION" >> $GITHUB_OUTPUT
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
if: "${{ steps.getversion.outputs.VERSION != '' }}"
with:
context: .
push: true
tags: |
kpnnl/cz-kpn:${{ steps.getversion.outputs.VERSION }}