Skip to content

Bulk asynchronous downloader for multiple file hosts

Update publish-to-pypi.yaml

Jacob182d2420d891
diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yaml
index 26b0a0d8a..b6883faf8 100644
--- a/.github/workflows/publish-to-pypi.yaml
+++ b/.github/workflows/publish-to-pypi.yaml
@@ -28,25 +28,28 @@ jobs:
run: |
version=$(poetry version --short)
if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
- echo "version=$version" >> $GITHUB_OUTPUT
+ echo "version=$version" >> $GITHUB_STATE
else
echo "Not a valid version bump. Skipping tag creation."
exit 0
fi
- name: Create Tag
- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.check-version.outputs.version != '' }}
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && env.version != '' }}
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- git tag ${{ steps.check-version.outputs.version }}
- git push origin ${{ steps.check-version.outputs.version }}
+ git tag ${{ env.version }}
+ git push origin ${{ env.version }}
release:
runs-on: ubuntu-latest
needs: check-version
- if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
+ if: ${{ needs.check-version.outputs.version != '' }}
steps:
+ - name: Retrieve Version
+ run: echo "VERSION=${{ needs.check-version.outputs.version }}" >> $GITHUB_ENV
+
- name: Checkout code
uses: actions/checkout@v4