Improve error logging for missing remote files in ThumbnailBackend #60
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| build: | |
| if: github.repository == 'jazzband/sorl-thumbnail' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.9 | |
| - name: Get pip cache dir | |
| id: pip-cache | |
| run: | | |
| echo "CACHE_DIR=$(pip cache dir)" >> "$GITHUB_OUTPUT" | |
| - name: Cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ steps.pip-cache.outputs.CACHE_DIR }} | |
| key: release-${{ hashFiles('**/pyproject.toml') }} | |
| restore-keys: | | |
| release- | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install -U pip build twine | |
| - name: Build package | |
| run: | | |
| python -m build | |
| twine check dist/* | |
| - name: Upload packages to Jazzband | |
| if: github.event.action == 'published' | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: jazzband | |
| password: ${{ secrets.JAZZBAND_RELEASE_KEY }} | |
| repository_url: https://jazzband.co/projects/sorl-thumbnail/upload |