From 453287d57d2a097a9e2d249cadd9298b76e310c1 Mon Sep 17 00:00:00 2001 From: steebchen Date: Wed, 18 Sep 2024 13:26:19 -0400 Subject: [PATCH] xdg --- .github/workflows/preview.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 2d8f8d69af..4c43b4f8da 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -103,11 +103,22 @@ jobs: - name: Deploy on slot run: | curl -L https://slot.cartridge.sh | bash - ls -R $HOME/.slot - $HOME/.slot/bin/slotup - $HOME/.slot/bin/slot --version - $HOME/.slot/bin/slot d create preview--${{ github.ref_name }} katana --version preview--${{ github.ref_name }} - $HOME/.slot/bin/slot d create preview--${{ github.ref_name }} torii --version preview--${{ github.ref_name }} \ + BASE_DIR=${XDG_CONFIG_HOME:-$HOME} + SLOT_DIR=${SLOT_DIR-"$BASE_DIR/.slot"} + SLOT_BIN_DIR="$SLOT_DIR/bin" + SLOT_MAN_DIR="$SLOT_DIR/share/man/man1" + + BIN_URL="https://raw.githubusercontent.com/cartridge-gg/slot/main/slotup/slotup" + BIN_PATH="$SLOT_BIN_DIR/slotup" + + echo "BIN_PATH: $BIN_PATH" + + ls -R $XDG_CONFIG_HOME/.slot + + $XDG_CONFIG_HOME/.slot/bin/slotup + $XDG_CONFIG_HOME/.slot/bin/slot --version + $XDG_CONFIG_HOME/.slot/bin/slot d create preview--${{ github.ref_name }} katana --version preview--${{ github.ref_name }} + $XDG_CONFIG_HOME/.slot/bin/slot d create preview--${{ github.ref_name }} torii --version preview--${{ github.ref_name }} \ --rpc=http://slot.prod.svc.cluster.local/x/starknet/sepolia \ --world=0x53b7efae79ce1d7729828bb6dee2cee09358fde4c4325805cf97678919a4855 \ --start-block=0