Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Pre-Release
on:
push:
branches:
Expand All @@ -13,6 +13,12 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if version is dev
run: |
if ! grep -q "\.dev\d" django_prometheus/__init__.py; then
echo "Version does not contain 'dev', skipping pre-release"
exit 1
fi
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Release To PyPI
on:
push:
tags:
Expand Down