Skip to content

15.1.0

15.1.0 #65

name: Publish release to PyPi
on:
release:
types: [published]
jobs:
build-wheel-and-tarball:
runs-on: ubuntu-latest
name: Build Logprep
steps:
- uses: actions/checkout@v4
- name: Initialize Python
uses: actions/setup-python@v1
with:
python-version: "3.11"
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: all
- name: Install cibuildwheel
run: python -m pip install cibuildwheel
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse --archs x86_64
- name: Build binary wheel and a source tarball
run: pipx run build --sdist
- name: copy artifacts to dist folder
run: cp ./wheelhouse/* ./dist/
- name: Upload Artifact for next job
uses: actions/upload-artifact@master
with:
name: logprep-build
path: dist
publish-latest-release-to-pypi:
runs-on: ubuntu-latest
name: Publish release to PyPi
environment:
name: pypi
url: https://pypi.org/p/logprep
permissions:
id-token: write
needs: build-wheel-and-tarball
steps:
- name: Download artifact from previous job
uses: actions/download-artifact@master
with:
name: logprep-build
path: dist
- name: Publish package distributions to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
containerbuild:
uses: ./.github/workflows/container-build.yml
needs: publish-latest-release-to-pypi
secrets: inherit
with:
build-version: ${{ github.ref_name }}
tags: "${{ github.ref_name }}, stable, latest"