FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
django-plugin/.github/workflows/python-publish.yml at main · simpleanalytics/django-plugin · GitHub
simpleanalytics
/
django-plugin
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
3
Code
Issues
0
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
django-plugin
/
.github
/
workflows
/
python-publish.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
63 lines (52 loc) · 1.52 KB
Breadcrumbs
django-plugin
/
.github
/
workflows
/
python-publish.yml
Copy path
File metadata and controls
63 lines (52 loc) · 1.52 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name
:
Publish Python Package
on
:
push
:
branches
:
-
main
permissions
:
contents
:
write
#
Needed to push changes back to the repository
jobs
:
release
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
#
Fetch all history for tags and branches
-
name
:
Set up Python
uses
:
actions/setup-python@v5
with
:
python-version
:
'
3.x
'
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install bump2version
-
name
:
Bump version
id
:
bump_version
run
:
|
VERSION=$(bump2version patch --allow-dirty --no-commit --no-tag --list | grep new_version= | cut -d'=' -f2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
shell
:
bash
-
name
:
Commit version bump
uses
:
stefanzweifel/git-auto-commit-action@v5
with
:
commit_message
:
'
Version bump to ${{ env.VERSION }} [skip ci]
'
file_pattern
:
|
setup.py
.bumpversion.cfg
-
name
:
Create GitHub Release
uses
:
softprops/action-gh-release@v2
with
:
tag_name
:
"
v${{ env.VERSION }}
"
name
:
"
v${{ env.VERSION }}
"
draft
:
false
prerelease
:
false
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Install build tool
run
:
pip install build
-
name
:
Build package
run
:
python -m build
-
name
:
Publish package to PyPI
uses
:
pypa/gh-action-pypi-publish@master
with
:
password
:
${{ secrets.PYPI_API_TOKEN }}
Back
|
FazBrowse Home
|
New Git URL