Skip to content

fix: __version__ metadata #35

fix: __version__ metadata

fix: __version__ metadata #35

Workflow file for this run

name: build
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+-?rc[0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+-?[ab][0-9]+"
- "v?[0-9]+.[0-9]+.[0-9]+.post[0-9]+"
defaults:
run:
shell: bash -l {0}
jobs:
build:
name: Build package
uses: ./.github/workflows/_build-package.yml
with:
cache-package: true
upload-package: true
test-files: true
test-imports: true
publish:
name: Publish to PyPI
runs-on: ubuntu-latest
needs: [build]
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 }}-${{ github.ref_type }}
fail-on-cache-miss: true
- name: List output
run: |
ls -lah dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}