Skip to content

Commit 1595348

Browse files
authored
fix(ci): maybe this will fix Semantic Release (#161)
1 parent 70d2c81 commit 1595348

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release
22

33
on:
44
workflow_dispatch:
5+
# Disabled to be able to roll multiple breaking releases into one release
56
# push:
67
# branches:
78
# - master
@@ -12,28 +13,28 @@ jobs:
1213
concurrency: release
1314
permissions:
1415
id-token: write
16+
contents: write
1517

1618
steps:
1719
- uses: actions/checkout@v3
1820
with:
1921
fetch-depth: 0
22+
persist-credentials: false
2023
- name: Python Semantic Release
2124
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
2427
with:
25-
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
2629

2730
- name: Publish package distributions to PyPI
2831
uses: pypa/gh-action-pypi-publish@release/v1
2932
# NOTE: DO NOT wrap the conditional in ${{ }} as it will always evaluate to true.
3033
# See https://github.com/actions/runner/issues/1173
3134
if: steps.release.outputs.released == 'true'
32-
with:
33-
pypi_token: ${{ secrets.PYPI_TOKEN }}
3435

3536
- name: Publish package distributions to GitHub Releases
3637
uses: python-semantic-release/upload-to-gh-release@main
3738
if: steps.release.outputs.released == 'true'
3839
with:
39-
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ factory-boy = "3.*"
3737
dj-database-url = "2.*"
3838

3939
[tool.semantic_release]
40-
branch = "master"
4140
version_toml = ["pyproject.toml:tool.poetry.version"]
4241
version_variables = ["django_object_actions/__init__.py:__version__"]
4342
build_command = "pip install poetry && poetry build"

0 commit comments

Comments
 (0)