Skip to content

Commit

Permalink
fix publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Nov 1, 2024
1 parent ac69d49 commit 0770410
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ jobs:
with:
enable-cache: true
cache-dependency-glob: "pyproject.toml"
- run: just publish modern-di
if: startsWith(github.ref_name, 'core')

- if: startsWith(github.ref_name, 'core')
run: just publish modern-di
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

- run: just publish modern-di-fastapi
if: startsWith(github.ref_name, 'fastapi')
- 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 }}

0 comments on commit 0770410

Please sign in to comment.