|
|
@ -2,10 +2,6 @@ name: Release
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
prerelease:
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
type: boolean
|
|
|
|
|
|
|
|
source:
|
|
|
|
source:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: ''
|
|
|
|
default: ''
|
|
|
@ -18,6 +14,10 @@ on:
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: ''
|
|
|
|
default: ''
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
|
|
|
|
prerelease:
|
|
|
|
|
|
|
|
required: false
|
|
|
|
|
|
|
|
default: true
|
|
|
|
|
|
|
|
type: boolean
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
inputs:
|
|
|
|
source:
|
|
|
|
source:
|
|
|
@ -278,11 +278,20 @@ jobs:
|
|
|
|
make clean-cache
|
|
|
|
make clean-cache
|
|
|
|
python -m build --no-isolation .
|
|
|
|
python -m build --no-isolation .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Upload artifacts
|
|
|
|
|
|
|
|
if: github.event_name != 'workflow_dispatch'
|
|
|
|
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
name: build-pypi
|
|
|
|
|
|
|
|
path: |
|
|
|
|
|
|
|
|
dist/*
|
|
|
|
|
|
|
|
compression-level: 0
|
|
|
|
|
|
|
|
|
|
|
|
- name: Publish to PyPI
|
|
|
|
- name: Publish to PyPI
|
|
|
|
|
|
|
|
if: github.event_name == 'workflow_dispatch'
|
|
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
|
uses: pypa/gh-action-pypi-publish@release/v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
verbose: true
|
|
|
|
verbose: true
|
|
|
|
attestations: false # Currently doesn't work w/ reusable workflows (breaks nightly)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
publish:
|
|
|
|
publish:
|
|
|
|
needs: [prepare, build]
|
|
|
|
needs: [prepare, build]
|
|
|
|