Debian Codegraph @

.github/workflows/release.yml

raw
1 ---
2 name: Release
3
4 on:
5 push:
6 tags:
7 - '*'
8
9 jobs:
10 build:
11 if: github.repository == 'jazzband/django-simple-history'
12 runs-on: ubuntu-latest
13
14 steps:
15 - uses: actions/checkout@v4
16 with:
17 fetch-depth: 0
18
19 - name: Set up Python
20 uses: actions/setup-python@v5
21 with:
22 python-version: 3.x
23
24 - name: Install dependencies
25 run: |
26 python -m pip install -U pip
27 python -m pip install -U build twine
28
29 - name: Build package
30 run: |
31 python -m build
32 twine check dist/*
33
34 - name: Upload packages to Jazzband
35 if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
36 uses: pypa/gh-action-pypi-publish@release/v1
37 with:
38 user: jazzband
39 password: ${{ secrets.JAZZBAND_RELEASE_KEY }}
40 repository-url: https://jazzband.co/projects/django-simple-history/upload