File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ name: Release
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ # Disabled to be able to roll multiple breaking releases into one release
5
6
# push:
6
7
# branches:
7
8
# - master
@@ -12,28 +13,28 @@ jobs:
12
13
concurrency : release
13
14
permissions :
14
15
id-token : write
16
+ contents : write
15
17
16
18
steps :
17
19
- uses : actions/checkout@v3
18
20
with :
19
21
fetch-depth : 0
22
+ persist-credentials : false
20
23
- name : Python Semantic Release
21
24
id : release
22
- # https://github.com/relekang /python-semantic-release/releases
23
- uses : relekang /python-semantic-release@v8.0.7
25
+ # https://github.com/python-semantic-release /python-semantic-release/releases
26
+ uses : python-semantic-release /python-semantic-release@v8.0.8
24
27
with :
25
- github_token : ${{ secrets.GITHUB_TOKEN }}
28
+ github_token : ${{ secrets.BOT_GITHUB_TOKEN }}
26
29
27
30
- name : Publish package distributions to PyPI
28
31
uses : pypa/gh-action-pypi-publish@release/v1
29
32
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
30
33
# See https://github.com/actions/runner/issues/1173
31
34
if : steps.release.outputs.released == 'true'
32
- with :
33
- pypi_token : ${{ secrets.PYPI_TOKEN }}
34
35
35
36
- name : Publish package distributions to GitHub Releases
36
37
uses : python-semantic-release/upload-to-gh-release@main
37
38
if : steps.release.outputs.released == 'true'
38
39
with :
39
- github_token : ${{ secrets.GITHUB_TOKEN }}
40
+ github_token : ${{ secrets.BOT_GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ factory-boy = "3.*"
37
37
dj-database-url = " 2.*"
38
38
39
39
[tool .semantic_release ]
40
- branch = " master"
41
40
version_toml = [" pyproject.toml:tool.poetry.version" ]
42
41
version_variables = [" django_object_actions/__init__.py:__version__" ]
43
42
build_command = " pip install poetry && poetry build"
You can’t perform that action at this time.
0 commit comments