v4.28.4 #105
Workflow file for this run
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: | |
| release: | |
| types: [published] | |
| jobs: | |
| pypi-release: | |
| name: "Python Package Release" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| package: | |
| - dsw-command-queue | |
| - dsw-config | |
| - dsw-database | |
| - dsw-models | |
| - dsw-storage | |
| - dsw-tdk | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Create build info | |
| run: | | |
| bash scripts/build-info.sh | |
| - name: Build distribution packages | |
| run: | | |
| uv build --no-create-gitignore --package ${{ matrix.package }} | |
| ls -lah dist/ | |
| - name: Publish to PyPI | |
| uses: pypa/gh-action-pypi-publish@release/v1 | |
| with: | |
| user: __token__ | |
| password: ${{ secrets.PYPI_API_TOKEN }} | |
| packages_dir: ./dist | |
| print_hash: true | |
| verbose: true | |
| skip_existing: true | |
| - name: Upload release assets | |
| uses: shogo82148/actions-upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: ./dist/* | |
| mail-translations: | |
| name: "Mail Template Translations" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: 3.13 | |
| cache: pip | |
| cache-dependency-path: | | |
| **/pyproject.toml | |
| **/requirements*.txt | |
| - name: Prepare Python env | |
| run: | | |
| python -m pip install -U pip setuptools wheel | |
| - name: Install Babel (2.17.0) | |
| run: | | |
| python -m pip install -U babel==2.17.0 | |
| - name: Install dependencies | |
| run: | | |
| cd packages/dsw-mailer | |
| pip install -r requirements.txt | |
| make local-deps | |
| - name: Generate POT files | |
| run: | | |
| cd packages/dsw-mailer | |
| make pot | |
| - name: Upload release assets | |
| uses: shogo82148/actions-upload-release-asset@v1 | |
| with: | |
| upload_url: ${{ github.event.release.upload_url }} | |
| asset_path: packages/dsw-mailer/templates/locale/*.pot |