name: Release on: push: tags: - '*' jobs: build: if: github.repository == 'django-q2/django-q2' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python uses: actions/setup-python@v4 with: python-version: 3.11 - name: Install dependencies run: | sudo apt-get update sudo apt-get -y install gettext pip install uv==0.12.1 django==5.2 # compile messages to get .mo files uv run django-admin compilemessages - name: Build and publish package if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') run: | uv build uv publish --token ${{ secrets.PYPI_TOKEN }}