Test on Django 5.0 (#418) #28
This file contains 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" | |
jobs: | |
pre-release-django-prometheus-job: | |
runs-on: ubuntu-latest | |
name: pre-release django-prometheus | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install wheel setuptools packaging twine build --upgrade | |
- name: Set version number | |
run: python update_version_from_git.py | |
- name: Build | |
run: python -m build | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@v1.8.5 | |
with: | |
skip-existing: true | |
verbose: true | |
print-hash: true |