Skip to content

core-0.4.3

core-0.4.3 #27

Workflow file for this run

name: Publish Package
on:
release:
types:
- published
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- if: startsWith(github.ref_name, 'core')
run: just publish modern-di
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
- if: startsWith(github.ref_name, 'fastapi')
run: |
export SETUPTOOLS_SCM_PRETEND_VERSION=$(echo "${{ github.ref_name }}" | sed 's/^fastapi-//; s/-.*$//')
echo "SETUPTOOLS_SCM_PRETEND_VERSION=$SETUPTOOLS_SCM_PRETEND_VERSION"
just publish modern-di-fastapi
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}