Skip to content

Commit

Permalink
Fix playground upload
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Feb 8, 2024
1 parent 7963847 commit edb151b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -256,7 +256,7 @@ jobs:
env:
KEYCDN_USER: ${{ secrets.KEYCDN_USER }}
KEYCDN_PASSWORD: ${{ secrets.KEYCDN_PASSWORD }}
run: sh playground/upload_bundle.sh
run: bash playground/upload_bundle.sh

- name: Prepare artifact upload
run: node .github/workflows/get_artifact_info.js
Expand Down
8 changes: 2 additions & 6 deletions playground/upload_bundle.sh
@@ -1,4 +1,4 @@
#/usr/bin/sh
#!/bin/bash

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

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

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

curl --ftp-create-dirs -T "${SOURCE}/cmij.js" --ssl --netrc-file $NETRC_FILE "${TARGET}/cmij.js"
done




0 comments on commit edb151b

Please sign in to comment.