Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update Walrus setup to Testnet #137

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/actions/set-up-walrus/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: >
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/update-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down