Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Update publish-to-pypi.yaml
Jacob585683079634
diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yamlindex b6883faf8..df6f4631c 100644--- a/.github/workflows/publish-to-pypi.yaml+++ b/.github/workflows/publish-to-pypi.yaml@@ -8,7 +8,7 @@ on:- '*.*.*'jobs:- check-version:+ release:runs-on: ubuntu-lateststeps:- name: Checkout code@@ -28,47 +28,29 @@ jobs:run: |version=$(poetry version --short)if [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then- echo "version=$version" >> $GITHUB_STATE+ echo "version=$version" >> $GITHUB_OUTPUTelseecho "Not a valid version bump. Skipping tag creation."exit 0fi- name: Create Tag- if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && env.version != '' }}+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.release.outputs.version != '' }}run: |git config user.name "GitHub Actions"git config user.email "[email protected]"git tag ${{ env.version }}- git push origin ${{ env.version }}-- release:- runs-on: ubuntu-latest- needs: check-version- 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-- - name: Set up Python 3.11.4- uses: actions/setup-python@v4- with:- python-version: "3.11.4"-- - name: Install Poetry- run: |- curl -sSL https://install.python-poetry.org | python - -y-- - name: Update PATH- run: echo "$HOME/.local/bin" >> $GITHUB_PATH+ git push origin ${{ steps.release.outputs.version }}+ echo "ref is ${{ github.ref }}"+ echo "event name is ${{ github.event_name }}"+ echo "version is ${{ steps.release.outputs.version }}"- name: Build project for distribution+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}run: poetry build- name: Publish to PyPI+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}env:POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}run: poetry publish