Skip to content

Commit 58e29dd

Browse files
committed
Fix release and CD actions
1 parent 81972c7 commit 58e29dd

File tree

4 files changed

+20
-13
lines changed

4 files changed

+20
-13
lines changed

.github/continuous-delivery.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
- *setup-verlite
4242
- *setup-openssl
4343
- *mutation-test
44-
- *upload-artifacts
44+
- *mutation-test-archive
45+
- *mutation-test-upload-artifacts
4546
publish:
4647
name: 'Publish'
4748
needs: build-and-test

.github/deploy-release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ jobs:
3131
run: |
3232
set -x
3333
tag="${GITHUB_REF#refs/*/}"
34-
options=()
35-
36-
options+=("-m" "") # leave the title and body unchanged
34+
files=()
3735
3836
IFS=$'\n';
3937
for asset in $(find ./artifacts -name "*.nupkg"); do
40-
options+=("-a" "$asset")
38+
files+=("$asset")
4139
done
4240
43-
hub release edit "${options[@]}" "$tag"
41+
gh release upload "$tag" "${files[@]}"
4442
env:
4543
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4644

.github/workflows/continuous-delivery.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,21 @@ jobs:
114114
env:
115115
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
116116

117-
- name: Upload Artifacts
117+
- name: Archive mutation output
118+
if: success() || failure()
119+
run: |
120+
cd tests/UnitTests
121+
mkdir -p ../../artifacts
122+
find StrykerOutput -name mutation-report.html -exec cp {} ../../artifacts/ \;
123+
if [[ -d StrykerOutput ]]; then
124+
mv StrykerOutput ../../artifacts/StrykerOutput
125+
fi
126+
127+
- name: Upload mutation test artifacts
118128
uses: actions/upload-artifact@v4
119129
if: success() || failure()
120130
with:
121-
name: artifacts
131+
name: artifacts-mutation-test
122132
if-no-files-found: error
123133
path: |
124134
artifacts/*

.github/workflows/deploy-release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,14 @@ jobs:
7070
run: |
7171
set -x
7272
tag="${GITHUB_REF#refs/*/}"
73-
options=()
74-
75-
options+=("-m" "") # leave the title and body unchanged
73+
files=()
7674
7775
IFS=$'\n';
7876
for asset in $(find ./artifacts -name "*.nupkg"); do
79-
options+=("-a" "$asset")
77+
files+=("$asset")
8078
done
8179
82-
hub release edit "${options[@]}" "$tag"
80+
gh release upload "$tag" "${files[@]}"
8381
env:
8482
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8583

0 commit comments

Comments
 (0)