diff --git a/.github/actions/set-up-walrus/action.yaml b/.github/actions/set-up-walrus/action.yaml index 0d50422a..ab36999f 100644 --- a/.github/actions/set-up-walrus/action.yaml +++ b/.github/actions/set-up-walrus/action.yaml @@ -8,6 +8,9 @@ inputs: SUI_KEYSTORE: description: The content of the Sui keystore file required: true + WALRUS_CONFIG: + description: The content of the Walrus configuration file + required: true runs: using: "composite" @@ -54,11 +57,12 @@ runs: - name: Install and configure Walrus run: | # The bin directory was already created and added to $PATH in the build-mdbook action - curl https://storage.googleapis.com/mysten-walrus-binaries/walrus-latest-ubuntu-x86_64 -o bin/walrus + curl https://storage.googleapis.com/mysten-walrus-binaries/walrus-testnet-latest-ubuntu-x86_64 -o bin/walrus chmod +x bin/walrus - mkdir -p ~/.walrus - curl https://storage.googleapis.com/mysten-walrus-binaries/walrus-configs/client_config.yaml -o ~/.walrus/client_config.yaml - walrus -h # Ensure the walrus binary works + mkdir -p ~/.config/walrus + echo '${{ inputs.WALRUS_CONFIG }}' > ~/.config/walrus/client_config.yaml + walrus --version + walrus info # Ensure the walrus binary works shell: bash - name: Clone walrus-sites diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index e86344a9..e9df8a48 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -63,6 +63,7 @@ jobs: with: SUI_ADDRESS: "${{ vars.SUI_ADDRESS }}" SUI_KEYSTORE: "${{ secrets.SUI_KEYSTORE }}" + WALRUS_CONFIG: "${{ vars.WALRUS_CONFIG }}" - name: Update Walrus Site run: > diff --git a/.github/workflows/update-binaries.yaml b/.github/workflows/update-binaries.yaml index 1068a899..63f732fc 100644 --- a/.github/workflows/update-binaries.yaml +++ b/.github/workflows/update-binaries.yaml @@ -30,6 +30,7 @@ jobs: with: SUI_ADDRESS: "${{ vars.SUI_ADDRESS }}" SUI_KEYSTORE: "${{ secrets.SUI_KEYSTORE }}" + WALRUS_CONFIG: "${{ vars.WALRUS_CONFIG }}" - name: Create temporary directory run: "mkdir -p site"