Skip to content
This repository was archived by the owner on Jan 8, 2026. It is now read-only.

Commit a4f9e1e

Browse files
committed
Fix CD workflow with release artifact upload
- Add environment URLs for test and production PyPI deployments - Implement new job to upload release artifacts to GitHub Releases - Include artifact download and checksum generation steps
1 parent 08b70fd commit a4f9e1e

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

.github/workflows/cd.yml

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ jobs:
108108
needs: [build]
109109

110110
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'pull_request'
111-
environment: test-pypi
111+
environment:
112+
name: test-pypi
113+
url: https://test.pypi.org/p/clusx
112114

113115
permissions:
114116
id-token: write
@@ -135,7 +137,9 @@ jobs:
135137
needs: [build]
136138

137139
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
138-
environment: production-pypi
140+
environment:
141+
name: production-pypi
142+
url: https://pypi.org/p/clusx
139143

140144
permissions:
141145
id-token: write
@@ -154,6 +158,36 @@ jobs:
154158
password: ${{ secrets.PYPI_API_TOKEN }}
155159
verbose: true
156160

161+
upload_release_artifacts:
162+
name: Upload release artifacts
163+
runs-on: ubuntu-latest
164+
165+
needs: [build, upload_pypi]
166+
167+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
168+
environment:
169+
name: github-releases
170+
url: https://github.com/sergeyklay/clusterium/releases
171+
172+
permissions:
173+
contents: write
174+
checks: write
175+
176+
actions: read
177+
issues: read
178+
packages: write
179+
pull-requests: read
180+
repository-projects: read
181+
statuses: read
182+
183+
steps:
184+
- name: Download build artifacts
185+
uses: actions/download-artifact@v4
186+
with:
187+
name: dist
188+
path: dist
189+
merge-multiple: true
190+
157191
- name: Generate checksums
158192
run: |
159193
cd dist

0 commit comments

Comments
 (0)