Skip to content

Commit df0e07c

Browse files
committed
fix: update GitHub Actions workflow for PyPI publishing
- Update deprecated actions from v3 to v4 - Fix working directory for apps/pacc-cli structure - Correct package name from 'pacc' to 'pacc-cli' - Update PyPI URLs to match package name
1 parent c53da7e commit df0e07c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,18 @@ jobs:
3030
pip install build twine
3131
3232
- name: Build distributions
33+
working-directory: apps/pacc-cli
3334
run: python -m build
3435

3536
- name: Check distributions
37+
working-directory: apps/pacc-cli
3638
run: twine check dist/*
3739

3840
- name: Upload artifacts
39-
uses: actions/upload-artifact@v3
41+
uses: actions/upload-artifact@v4
4042
with:
4143
name: dist
42-
path: dist/
44+
path: apps/pacc-cli/dist/
4345

4446
test-pypi:
4547
name: Publish to Test PyPI
@@ -49,14 +51,14 @@ jobs:
4951

5052
environment:
5153
name: test-pypi
52-
url: https://test.pypi.org/project/pacc/
54+
url: https://test.pypi.org/project/pacc-cli/
5355

5456
permissions:
5557
id-token: write # OIDC publishing
5658

5759
steps:
5860
- name: Download artifacts
59-
uses: actions/download-artifact@v3
61+
uses: actions/download-artifact@v4
6062
with:
6163
name: dist
6264
path: dist/
@@ -75,14 +77,14 @@ jobs:
7577

7678
environment:
7779
name: pypi
78-
url: https://pypi.org/project/pacc/
80+
url: https://pypi.org/project/pacc-cli/
7981

8082
permissions:
8183
id-token: write # OIDC publishing
8284

8385
steps:
8486
- name: Download artifacts
85-
uses: actions/download-artifact@v3
87+
uses: actions/download-artifact@v4
8688
with:
8789
name: dist
8890
path: dist/
@@ -111,7 +113,7 @@ jobs:
111113

112114
- name: Install from PyPI
113115
run: |
114-
pip install pacc
116+
pip install pacc-cli
115117
pacc --version
116118
pacc --help
117119

0 commit comments

Comments
 (0)