core-0.4.3 #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |