diff --git a/.github/workflows/publish-python-sdk.yml b/.github/workflows/publish-python-sdk.yml index 2044b89..4835dc5 100644 --- a/.github/workflows/publish-python-sdk.yml +++ b/.github/workflows/publish-python-sdk.yml @@ -33,24 +33,24 @@ jobs: VERSION_INCREMENTED=$(python .github/scripts/check_version_has_incremented.py python ./apps/python-sdk/firecrawl firecrawl-py) echo "VERSION_INCREMENTED=$VERSION_INCREMENTED" >> $GITHUB_ENV - # - name: Debug output of version check - # run: | - # echo "Output of VERSION_INCREMENTED: '${{ env.VERSION_INCREMENTED }}'" + - name: Debug output of version check + run: | + echo "Output of VERSION_INCREMENTED: '${{ env.VERSION_INCREMENTED }}'" - # - name: Set published version environment variable - # if: ${{ env.VERSION_INCREMENTED == 'true' }} - # run: | - # echo "Published Version: ${{ env.VERSION_INCREMENTED }}" + - name: Set published version environment variable + if: ${{ env.VERSION_INCREMENTED == 'true' }} + run: | + echo "Published Version: ${{ env.VERSION_INCREMENTED }}" - # - name: Build the package - # if: ${{ env.VERSION_INCREMENTED == 'true' }} - # run: | - # python -m build + - name: Build the package + if: ${{ env.VERSION_INCREMENTED == 'true' }} + run: | + python -m build - # - name: Publish to PyPI - # if: ${{ env.VERSION_INCREMENTED == 'true' }} - # env: - # TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - # TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - # run: | - # echo "Publishing to PyPI" + - name: Publish to PyPI + if: ${{ env.VERSION_INCREMENTED == 'true' }} + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + echo "Publishing to PyPI"