Skip to content

Commit edb151b

Browse files
committed
Fix playground upload
1 parent 7963847 commit edb151b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: .github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ jobs:
256256
env:
257257
KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
258258
KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
259-
run: sh playground/upload_bundle.sh
259+
run: bash playground/upload_bundle.sh
260260

261261
- name: Prepare artifact upload
262262
run: node .github/workflows/get_artifact_info.js

Diff for: playground/upload_bundle.sh

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#/usr/bin/sh
1+
#!/bin/bash
22

33
# This script will publish the compiler.js bundle / packages cmij.js files to our KeyCDN server.
44
# The target folder on KeyCDN will be the compiler.js' version number.
@@ -29,7 +29,7 @@ if [ ! -f "${NETRC_FILE}" ]; then
2929
echo "machine ${KEYCDN_SRV} login $KEYCDN_USER password $KEYCDN_PASSWORD" > "${NETRC_FILE}"
3030
fi
3131

32-
PACKAGES=( "compiler-builtins" "@rescript/react" "@rescript/core")
32+
PACKAGES=("compiler-builtins" "@rescript/react" "@rescript/core")
3333

3434
echo "Uploading compiler.js file..."
3535
curl --ftp-create-dirs -T "${SCRIPT_DIR}/compiler.js" --ssl --netrc-file $NETRC_FILE ftp://${KEYCDN_SRV}/v${VERSION}/compiler.js
@@ -45,7 +45,3 @@ do
4545

4646
curl --ftp-create-dirs -T "${SOURCE}/cmij.js" --ssl --netrc-file $NETRC_FILE "${TARGET}/cmij.js"
4747
done
48-
49-
50-
51-

0 commit comments

Comments
 (0)