Skip to content

Commit d818dc6

Browse files
[ci] update manual-distribution workflow for future releases
1 parent 979f882 commit d818dc6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/manual-distribution.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ jobs:
3939
DARWIN_TOOLCHAIN_INSTALLER_CERT: ${{ secrets.DARWIN_TOOLCHAIN_INSTALLER_CERT }}
4040
DARWIN_TOOLCHAIN_INSTALLER_CERT_BASE64: ${{ secrets.DARWIN_TOOLCHAIN_INSTALLER_CERT_BASE64 }}
4141
DARWIN_TOOLCHAIN_INSTALLER_CERT_PASSWORD: ${{ secrets.DARWIN_TOOLCHAIN_INSTALLER_CERT_PASSWORD }}
42-
- run: |
42+
- name: Run ./utils/webassembly/distribute-latest-toolchain.sh
43+
run: |
4344
BRANCH="${{ github.event.inputs.branch }}"
45+
CHANNEL="${{ github.event.inputs.channel }}"
4446
45-
case "${{ github.event.inputs.channel }}" in
47+
case "$CHANNEL" in
4648
"DEVELOPMENT")
4749
export TARGETS_TO_DIST="amazonlinux2_x86_64 ubuntu18.04_x86_64 ubuntu20.04_x86_64 ubuntu20.04_aarch64 macos_x86_64 macos_arm64"
4850
./utils/webassembly/distribute-latest-toolchain.sh ${BRANCH:-swiftwasm} DEVELOPMENT "${{ github.event.inputs.toolchain_name }}"
@@ -64,8 +66,8 @@ jobs:
6466
./utils/webassembly/distribute-latest-toolchain.sh ${BRANCH:-swiftwasm-release/5.6} 5.6 "${{ github.event.inputs.toolchain_name }}"
6567
;;
6668
*)
67-
echo "Unrecognised release channel: ${{ github.event.inputs.channel }}"
68-
exit 1
69+
export TARGETS_TO_DIST="amazonlinux2_x86_64 ubuntu18.04_x86_64 ubuntu20.04_x86_64 ubuntu20.04_aarch64 macos_x86_64 macos_arm64"
70+
./utils/webassembly/distribute-latest-toolchain.sh ${BRANCH:-swiftwasm-release/$CHANNEL} "$CHANNEL" "${{ github.event.inputs.toolchain_name }}"
6971
;;
7072
esac
7173

0 commit comments

Comments
 (0)