Skip to content

Commit

Permalink
fix leftover command
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Jul 1, 2024
1 parent 4513bf4 commit c4a5997
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions Tools/wasm/wasmer-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand All @@ -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

0 comments on commit c4a5997

Please sign in to comment.