File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Update CHANGELOG
2
+ on :
3
+ release :
4
+ types : [published]
5
+
6
+ jobs :
7
+ changelog :
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v2
13
+
14
+ - name : Generate CHANGELOG
15
+ uses : tj-actions/github-changelog-generator@v1.3
16
+ with :
17
+ token : ${{ secrets.PAT_TOKEN }}
18
+
19
+ - name : Create Pull Request
20
+ uses : peter-evans/create-pull-request@v3
21
+ with :
22
+ token : ${{ secrets.PAT_TOKEN }}
23
+ commit-message : Update CHANGELOG
24
+ committer : github-actions[bot] <github-actions[bot]@users.noreply@github.com>
25
+ author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
26
+ branch : chore/update-changelog
27
+ base : master
28
+ delete-branch : true
29
+ title : ' Update CHANGELOG'
30
+ body : |
31
+ Update changelog
32
+ - Auto-generated by github-actions[bot]
33
+ assignees : jackton1
34
+ reviewers : jackton1
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ MANAGE_PY := $(PYTHON) manage.py
7
7
PYTHON_PIP := /usr/bin/env pip
8
8
PIP_COMPILE := /usr/bin/env pip-compile
9
9
PART := patch
10
- PACKAGE_VERSION = $(shell $(PYTHON ) setup.py --version)
11
10
12
11
# Put it first so that "make" without argument is like "make help".
13
12
help :
@@ -50,13 +49,14 @@ update-requirements: ## Updates the requirement.txt adding missing package depe
50
49
@$(PIP_COMPILE )
51
50
52
51
tag-build :
53
- @git tag v$(PACKAGE_VERSION )
52
+ @git tag v$(shell $( PYTHON ) setup.py --version )
54
53
55
54
release-to-pypi : clean-build increase-version tag-build # # Release project to pypi
56
55
@$(PYTHON_PIP ) install -U twine
57
56
@$(PYTHON ) setup.py sdist bdist_wheel
58
57
@twine check dist/*
59
58
@twine upload dist/*
59
+ @git push --tags
60
60
61
61
# ----------------------------------------------------------
62
62
# ---------- Upgrade project version (bumpversion) --------
You can’t perform that action at this time.
0 commit comments