Skip to content

Commit

Permalink
fix issue with paths
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Jul 2, 2024
1 parent eb27a31 commit d5a4899
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ jobs:
curl https://get.wasmer.io -sSfL | sh
- name: "Publish to wasmer.io"
run: |
cd ${{ env.WASMER_PACKAGE }}
PATH="$PATH:${{ env.WASMER_DIR }}/bin" \
./Tools/wasm/wasmer-publish.sh push "${{ secrets.WASMER_CIUSER_PROD_TOKEN }}"
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\"=\"$WASMER_PACKAGE/cpython\" \n
\"/cpython\"=\"cpython\" \n
"

echo -e $TOML > $WASMER_PACKAGE/wasmer.toml
echo -e $TOML > wasmer.toml
}

if test -z "$2"; then
Expand All @@ -53,7 +53,7 @@ if [ "$1" == "push" ]; then
# populate wasmer.toml
populate_wasmer_toml

wasmer package push --registry "wasmer.io" --token $TOKEN $WASMER_PACKAGE
wasmer package push --registry "wasmer.io" --token $TOKEN .
elif [ "$1" == "publish" ]; then
if test -z "$3"; then
echo "Version is not specified"
Expand All @@ -64,5 +64,5 @@ elif [ "$1" == "publish" ]; then
# populate wasmer.toml
populate_wasmer_toml $VERSION

wasmer package publish --registry "wasmer.io" --token $TOKEN --non-interactive $WASMER_PACKAGE
wasmer package publish --registry "wasmer.io" --token $TOKEN --non-interactive .
fi

0 comments on commit d5a4899

Please sign in to comment.