Update bin.walrus.site with latest binaries #357
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update bin.walrus.site with latest binaries | |
on: | |
repository_dispatch: | |
types: [update-sites-bins] | |
# every week | |
schedule: | |
- cron: "14 3 * * 0" | |
# on demand | |
workflow_dispatch: | |
concurrency: ci-${{ github.ref }} | |
permissions: | |
contents: read | |
jobs: | |
# We store the data for the Sui wallet and the site object in GitHub variables | |
# (https://github.com/MystenLabs/walrus-docs/settings/variables/actions) and secrets | |
# (https://github.com/MystenLabs/walrus-docs/settings/secrets/actions). | |
update-bin-walrus-site: | |
name: Update Walrus Site bin.walrus.site | |
runs-on: ubuntu-ghcloud | |
env: | |
# Colors don't seem to work properly with the multiline commands. | |
NO_COLOR: 1 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/set-up-walrus | |
with: | |
SUI_ADDRESS: "${{ vars.SUI_ADDRESS }}" | |
SUI_KEYSTORE: "${{ secrets.SUI_KEYSTORE }}" | |
WALRUS_CONFIG: "${{ vars.WALRUS_CONFIG }}" | |
- name: Create temporary directory | |
run: "mkdir -p site" | |
- name: Download latest testnet binaries | |
run: | | |
for arch in ubuntu-x86_64 ubuntu-x86_64-generic macos-x86_64 macos-arm64 windows-x86_64.exe; do | |
name=walrus-testnet-latest-$arch | |
curl https://storage.googleapis.com/mysten-walrus-binaries/$name -o site/$name | |
done | |
- name: Update Walrus Site | |
run: > | |
RUST_LOG=site_builder=debug,walrus=debug,info | |
site-builder | |
--config walrus-sites/sites-config.yaml | |
update --list-directory site ${{ vars.WALRUS_SITE_BIN_OBJECT }} | |
--epochs 200 | |
--force |