Skip to content

Release

Release #4

Workflow file for this run

name: Release
on:
push:
tags:
- '*'
jobs:
build:
if: github.repository == 'jazzband/django-user-sessions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "latest"
- name: Install twine
run: |
uv pip install twine
- name: Build package
run: |
uv build
- name: Upload packages to Jazzband
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
run: |
uv run twine upload --username jazzband --password ${{ secrets.JAZZBAND_RELEASE_KEY }} --repository-url https://jazzband.co/projects/django-user-sessions/upload dist/*