Skip to content

Commit dd48fb8

Browse files
committed
For backwards compatibility keep the name of the minimalistic build the same
1 parent 95a1064 commit dd48fb8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,19 @@ jobs:
8181
run: |
8282
cd ..
8383
cp -R simplesamlphp "simplesamlphp-$VERSION"
84-
tar --owner 0 --group 0 -cvzf "/tmp/simplesamlphp-$VERSION-${{ matrix.version }}.tar.gz" \
85-
"simplesamlphp-$VERSION"
84+
TARGET="/tmp/simplesamlphp-$VERSION-${{ matrix.version }}.tar.gz"
85+
# remove -slim from the filename for our minimalistic build
86+
TARGET=${TARGET/-slim/}
87+
echo "VERSION=$TARGET" >> "$GITHUB_ENV"
88+
tar --owner 0 --group 0 -cvzf "$TARGET" "simplesamlphp-$VERSION"
8689
rm -rf "simplesamlphp-$VERSION"
8790
8891
- name: Save tarball
8992
uses: actions/upload-artifact@v3
9093
with:
9194
name: release-${{ matrix.version }}
92-
path: "/tmp/simplesamlphp-${{ env.VERSION }}-${{ matrix.version }}.tar.gz"
95+
path: "$TARGET"
9396
retention-days: 1
9497

9598
- name: Calculate SHA checksum (${{ matrix.version }})
96-
run: sha256sum "/tmp/simplesamlphp-$VERSION-${{ matrix.version }}.tar.gz"
99+
run: sha256sum "$TARGET"

0 commit comments

Comments
 (0)