Skip to content

Commit cad6351

Browse files
committed
fix: Correct working directory for semantic release.
Fix the directory for the reusable plugin as well as for the pypi upload step.
1 parent f069b27 commit cad6351

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
github_token: ${{ secrets.GITHUB_TOKEN }}
4444
git_committer_name: "github-actions"
4545
git_committer_email: "[email protected]"
46-
working-directory: './backend'
46+
directory: './backend'
4747

4848
- name: Publish | Upload to GitHub Release Assets
4949
uses: python-semantic-release/[email protected]
@@ -57,9 +57,8 @@ jobs:
5757
uses: actions/upload-artifact@v4
5858
with:
5959
name: distribution-artifacts
60-
path: dist
60+
path: backend/dist
6161
if-no-files-found: error
62-
working-directory: './backend'
6362

6463
outputs:
6564
released: ${{ steps.release.outputs.released || 'false' }}
@@ -83,11 +82,11 @@ jobs:
8382
id: artifact-download
8483
with:
8584
name: distribution-artifacts
86-
path: dist
85+
path: backend/dist
8786

8887
- name: Publish to PyPi
8988
uses: pypa/gh-action-pypi-publish@release/v1
9089
with:
91-
packages-dir: dist
90+
packages-dir: backend/dist
9291
user: __token__
9392
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}

0 commit comments

Comments
 (0)