Skip to content

Commit 4f11e89

Browse files
authored
Update release script (#372)
1 parent 4ef4c21 commit 4f11e89

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/pre-release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- "master"
6+
jobs:
7+
pre-release-django-prometheus-job:
8+
runs-on: ubuntu-latest
9+
name: pre-release django-prometheus
10+
permissions:
11+
id-token: write
12+
# environment:
13+
# name: pypi
14+
# url: https://test.pypi.org/p/django-prometheus/
15+
steps:
16+
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
- name: Set up Python 3.9
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: 3.9
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install wheel setuptools packaging twine build --upgrade
27+
- name: Set version number
28+
run: python update_version_from_git.py
29+
- name: Build
30+
run: python -m build
31+
- name: Publish to TEST PyPI
32+
uses: pypa/[email protected]
33+
with:
34+
repository-url: https://test.pypi.org/legacy/
35+
skip-existing: true
36+
verbose: true
37+
print-hash: true

0 commit comments

Comments
 (0)