From c4a5997962c4f45e9202e986d1f38f4b79483eee Mon Sep 17 00:00:00 2001 From: "M.Amin Rayej" Date: Tue, 2 Jul 2024 01:33:43 +0330 Subject: [PATCH] fix leftover command --- .github/workflows/build.yml | 1 - Tools/wasm/wasmer-publish.sh | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ff56196e339dae..19a3cf48d1b885 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -329,7 +329,6 @@ jobs: ls - name: "Publish to wasmer.io" run: | - cp builddir/wasix/python.wasm ${{ env.WASIX_INSTALL }}/python.wasm ./Tools/wasm/wasmer-publish.sh publish ${{ secrets.WASMER_CIUSER_PROD_TOKEN }} ${{ secrets.WASMER_CIUSER_PROD_TOKEN }} 3.14-${{ github.sha }} # test_hypothesis: diff --git a/Tools/wasm/wasmer-publish.sh b/Tools/wasm/wasmer-publish.sh index e0d8ea5e5fb8c6..ba1a84710e70f3 100755 --- a/Tools/wasm/wasmer-publish.sh +++ b/Tools/wasm/wasmer-publish.sh @@ -37,10 +37,10 @@ populate_wasmer_toml() { \"PYTHONHOME\"=\"/cpython\" \n [fs] \n - \"/cpython\"=\"$WASIX_INSTALL/cpython\" \n + \"/cpython\"=\"$WASMER_PACKAGE/cpython\" \n " - echo -e $TOML > $WASIX_INSTALL/wasmer.toml + echo -e $TOML > $WASMER_PACKAGE/wasmer.toml } if test -z "$2"; then @@ -59,7 +59,7 @@ if [ "$1" == "push" ]; then # populate wasmer.toml populate_wasmer_toml - wasmer package push --registry "wasmer.io" --token $TOKEN $WASIX_INSTALL + wasmer package push --registry "wasmer.io" --token $TOKEN $WASMER_PACKAGE elif [ "$1" == "publish" ]; then if test -z "$4"; then echo "Version is not specified" @@ -70,5 +70,5 @@ elif [ "$1" == "publish" ]; then # populate wasmer.toml populate_wasmer_toml $VERSION - wasmer package publish --registry "wasmer.io" --token $TOKEN --owner $OWNER $WASIX_INSTALL + wasmer package publish --registry "wasmer.io" --token $TOKEN --owner $OWNER $WASMER_PACKAGE fi \ No newline at end of file