Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Test different release code
Jules-WinnfieldX6c1e1b68c9cc
diff --git a/.github/workflows/publish-to-pypi.yaml b/.github/workflows/publish-to-pypi.yamlindex 0908c68c1..e082d548a 100644--- a/.github/workflows/publish-to-pypi.yaml+++ b/.github/workflows/publish-to-pypi.yaml@@ -1,32 +1,47 @@-name: Publish to PyPI+name: Publish To PyPi+on:- workflow_dispatch:- inputs:- version:- description: 'version'- required: true+ push:+ tags:+ - '*.*.*'+jobs:- pypi:- if: ${{ inputs.pip}}+ release:+ name: Releaseruns-on: ubuntu-latest- name: create pypisteps:- - name: Checkout- uses: actions/checkout@v3- with:- fetch-depth: 0- ref: ${{inputs.version}}- - name: Set up Python 3.11.4+ - name: Checkout code+ uses: actions/checkout@v4++ - name: Set up Python 3.10uses: actions/setup-python@v4with:- python-version: '3.11.4'+ python-version: "3.10"+- name: Install Poetry- uses: snok/install-poetry@v1- - name: Build+ run: |+ curl -sSL https://install.python-poetry.org | python - -y++ - name: Update PATH+ run: echo "$HOME/.local/bin" >> $GITHUB_PATH++ - name: Build project for distributionrun: poetry build- - name: Push to pypi- env:- PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}++ - name: Check Version+ id: check-versionrun: |- poetry config pypi-token.pypi $PYPI_TOKEN- poetry publish+ [[ "$(poetry version --short)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] || echo prerelease=true >> $GITHUB_OUTPUT++ - name: Create Release+ uses: ncipollo/release-action@v1+ with:+ artifacts: "dist/*"+ token: ${{ secrets.GITHUB_TOKEN }}+ draft: false+ prerelease: steps.check-version.outputs.prerelease == 'true'++ - name: Publish to PyPI+ env:+ POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}+ run: poetry publish\ No newline at end of file