Spaces:
Running
Running
Commit ·
99c9fe0
1
Parent(s): 10deed8
fix: use /tmp for changelog artifact to avoid . file matching issues
Browse files- .changelog.md +0 -0
- .github/workflows/release.yml +18 -3
.changelog.md
CHANGED
|
File without changes
|
.github/workflows/release.yml
CHANGED
|
@@ -193,10 +193,22 @@ jobs:
|
|
| 193 |
cat .changelog.md
|
| 194 |
|
| 195 |
- name: Upload changelog artifact
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
uses: actions/upload-artifact@v4
|
| 197 |
with:
|
| 198 |
name: changelog
|
| 199 |
-
path:
|
| 200 |
if-no-files-found: error
|
| 201 |
|
| 202 |
- name: Build Python package
|
|
@@ -309,10 +321,13 @@ jobs:
|
|
| 309 |
uses: actions/download-artifact@v4
|
| 310 |
with:
|
| 311 |
name: changelog
|
| 312 |
-
path:
|
| 313 |
|
| 314 |
- name: Show changelog
|
| 315 |
-
run:
|
|
|
|
|
|
|
|
|
|
| 316 |
|
| 317 |
- name: Create GitHub Release
|
| 318 |
env:
|
|
|
|
| 193 |
cat .changelog.md
|
| 194 |
|
| 195 |
- name: Upload changelog artifact
|
| 196 |
+
run: |
|
| 197 |
+
if [ -f .changelog.md ]; then
|
| 198 |
+
echo "File exists, uploading..."
|
| 199 |
+
ls -la .changelog.md
|
| 200 |
+
cp .changelog.md /tmp/changelog-backup.md
|
| 201 |
+
else
|
| 202 |
+
echo "ERROR: .changelog.md does not exist!"
|
| 203 |
+
exit 1
|
| 204 |
+
fi
|
| 205 |
+
shell: bash
|
| 206 |
+
|
| 207 |
+
- name: Upload changelog via action
|
| 208 |
uses: actions/upload-artifact@v4
|
| 209 |
with:
|
| 210 |
name: changelog
|
| 211 |
+
path: /tmp/changelog-backup.md
|
| 212 |
if-no-files-found: error
|
| 213 |
|
| 214 |
- name: Build Python package
|
|
|
|
| 321 |
uses: actions/download-artifact@v4
|
| 322 |
with:
|
| 323 |
name: changelog
|
| 324 |
+
path: /tmp
|
| 325 |
|
| 326 |
- name: Show changelog
|
| 327 |
+
run: |
|
| 328 |
+
ls -la /tmp/changelog-backup.md
|
| 329 |
+
cp /tmp/changelog-backup.md .changelog.md
|
| 330 |
+
cat .changelog.md
|
| 331 |
|
| 332 |
- name: Create GitHub Release
|
| 333 |
env:
|