Skip to content

Commit 5659932

Browse files
committed
ci: once and for all FIX release pipeline
1 parent e22dc76 commit 5659932

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ jobs:
1414
url: https://pypi.org/p/django-json-agg
1515
permissions:
1616
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
1718
steps:
1819
- name: Check out the repository
19-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2021
with:
2122
fetch-depth: 2
2223

@@ -49,14 +50,14 @@ jobs:
4950
- name: Tag new version if it doesn't exist
5051
id: tag-version
5152
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
5354
env:
5455
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
5556
with:
56-
version: "${{ steps.check-version.outputs.version }}"
57+
tag: "${{ steps.check-version.outputs.version }}"
5758

5859
- name: Bump version for developmental release
59-
if: "! steps.tag-version.outputs.tagname"
60+
if: "! steps.tag-version.outputs.tag"
6061
run: |
6162
poetry version patch &&
6263
version=$(poetry version -s) &&
@@ -67,19 +68,19 @@ jobs:
6768
poetry build --ansi
6869
6970
- name: Publish package on PyPI
70-
if: steps.tag-version.outputs.tagname
71+
if: steps.tag-version.outputs.tag
7172
uses: pypa/[email protected]
7273

7374
- name: Publish package on TestPyPI
74-
if: "! steps.tag-version.outputs.tagname"
75+
if: "! steps.tag-version.outputs.tag"
7576
uses: pypa/[email protected]
7677
with:
7778
repository-url: https://test.pypi.org/legacy/
7879

7980
- name: Publish the release notes
8081
uses: release-drafter/[email protected]
8182
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 }}
8485
env:
8586
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)