14
14
url : https://pypi.org/p/django-json-agg
15
15
permissions :
16
16
id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
17
+ contents : write # Required for pushing tags - https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#permissions
17
18
steps :
18
19
- name : Check out the repository
19
- uses : actions/checkout@v3
20
+ uses : actions/checkout@v4
20
21
with :
21
22
fetch-depth : 2
22
23
@@ -49,14 +50,14 @@ jobs:
49
50
- name : Tag new version if it doesn't exist
50
51
id : tag-version
51
52
if : steps.check-version.outputs.version
52
- uses : butlerlogic/action-autotag @1.1.3 # don't update until https://github.com/ButlerLogic/action-autotag/issues/49 is fixed
53
+ uses : bruno-fs/repo-tagger @1.0.0
53
54
env :
54
55
GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
55
56
with :
56
- version : " ${{ steps.check-version.outputs.version }}"
57
+ tag : " ${{ steps.check-version.outputs.version }}"
57
58
58
59
- name : Bump version for developmental release
59
- if : " ! steps.tag-version.outputs.tagname "
60
+ if : " ! steps.tag-version.outputs.tag "
60
61
run : |
61
62
poetry version patch &&
62
63
version=$(poetry version -s) &&
@@ -67,19 +68,19 @@ jobs:
67
68
poetry build --ansi
68
69
69
70
- name : Publish package on PyPI
70
- if : steps.tag-version.outputs.tagname
71
+ if : steps.tag-version.outputs.tag
71
72
72
73
73
74
- name : Publish package on TestPyPI
74
- if : " ! steps.tag-version.outputs.tagname "
75
+ if : " ! steps.tag-version.outputs.tag "
75
76
76
77
with :
77
78
repository-url : https://test.pypi.org/legacy/
78
79
79
80
- name : Publish the release notes
80
81
uses :
release-drafter/[email protected]
81
82
with :
82
- publish : ${{ steps.tag-version.outputs.tagname != '' }}
83
- tag : ${{ steps.tag-version.outputs.tagname }}
83
+ publish : ${{ steps.tag-version.outputs.tag != '' }}
84
+ tag : ${{ steps.tag-version.outputs.tag }}
84
85
env :
85
86
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments