Skip to content

v2.0.3 - 2024-03-10 #27

v2.0.3 - 2024-03-10

v2.0.3 - 2024-03-10 #27

Workflow file for this run

name: build
on:
release:
types: [released]
workflow_dispatch:
defaults:
run:
shell: bash -l {0}
jobs:
build:
name: Build package
uses: ./.github/workflows/_build-package.yml
with:
check-prerelease: ${{ github.event_name == 'workflow_dispatch' }}
cache-package: true
upload-package: true
test-files: true
test-imports: true
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
steps:
- name: Retrieve cached package
uses: actions/cache/restore@v3
id: cache-prolif
with:
path: |
dist/prolif-*.whl
dist/prolif-*.tar.gz
key: prolif-${{ runner.os }}-${{ github.sha }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}