Skip to content

Release 1.0.2

Release 1.0.2 #46

Workflow file for this run

name: kubernator
on:
pull_request:
branches:
- master
- develop
push:
branches:
- master
- develop
jobs:
build:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
continue-on-error: false
strategy:
fail-fast: false
matrix:
python-version:
- '3.12'
- '3.11'
- '3.10'
- '3.9'
env:
DEPLOY_PYTHONS: "3.11"
DEPLOY_OSES: "Linux"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Should Upload
if: |
github.event_name == 'push' &&
contains(env.DEPLOY_OSES, runner.os) &&
contains(env.DEPLOY_PYTHONS, matrix.python-version)
shell: bash
run: echo "PYB_EXTRA_ARGS=+upload" >> "$GITHUB_ENV"
- name: Login to GitHub Container Registry for Upload
if: |
github.event_name == 'push' &&
contains(env.DEPLOY_OSES, runner.os) &&
contains(env.DEPLOY_PYTHONS, matrix.python-version)
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build with PyBuilder
uses: pybuilder/build@master
with:
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}
build-summary:
if: success() || failure()
runs-on: ubuntu-latest
name: Build Stable Summary
needs: build
steps:
- name: Check build matrix status
if: needs.build.result != 'success'
run: exit 1