publish wasm32 target
This commit is contained in:
parent
7c01b355a9
commit
94b3a561d9
@ -9,3 +9,5 @@ ENTRYPOINT ["trunk"]
|
|||||||
CMD ["serve"]
|
CMD ["serve"]
|
||||||
|
|
||||||
WORKDIR /egui-circles
|
WORKDIR /egui-circles
|
||||||
|
|
||||||
|
EXPOSE 8080/tcp
|
@ -25,16 +25,36 @@ if ! has_docker_image $BUILDER; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Initiate WASM32 target build.."
|
echo "--> Initiate WASM32 target build.."
|
||||||
|
|
||||||
if has_docker_container $TRAGET; then
|
docker run \
|
||||||
docker start \
|
--rm \
|
||||||
$TRAGET \
|
--volume $(pwd):/$NAME \
|
||||||
--attach
|
--name $TRAGET \
|
||||||
else
|
$BUILDER \
|
||||||
docker run \
|
build --release --public-url /$NAME --verbose
|
||||||
--volume $(pwd):/$NAME \
|
|
||||||
--name $TRAGET \
|
echo "--> wasm32 target can be found in dist/ folder"
|
||||||
$BUILDER \
|
|
||||||
build --release --public-url /$NAME --verbose
|
read -p "Would you like to publish (y/n)? "
|
||||||
fi
|
case "$REPLY" in
|
||||||
|
y|Y )
|
||||||
|
cd dist/
|
||||||
|
|
||||||
|
git init
|
||||||
|
git checkout -b main
|
||||||
|
git add .
|
||||||
|
git commit --message «v0.2.1»
|
||||||
|
|
||||||
|
# solution for "send-pack: unexpected disconnect while reading sideband packet"
|
||||||
|
git config http.postBuffer 157286400
|
||||||
|
|
||||||
|
git remote add origin https://gitea.djmil.dev/demo/egui-circles.git
|
||||||
|
git push --set-upstream origin main --force
|
||||||
|
|
||||||
|
echo "--> Published at https://demo.pages.djmil.dev/egui-circles"
|
||||||
|
;;
|
||||||
|
* )
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user