Skip to content

ci: scheduled&manual workflow to update bin.walrus.site #2

ci: scheduled&manual workflow to update bin.walrus.site

ci: scheduled&manual workflow to update bin.walrus.site #2

name: Update bin.walrus.site with latest binaries
on:
# every week
schedule:
- cron: '14 3 * * 0'
# on demand
workflow_dispatch:
pull_request:
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 }}"
- name: Create temporary directory
run: "mkdir -p bin"
- name: Download latest binaries
run: |
for arch in ubuntu-x86_64 macos-x86_64 macos-arm64; do
curl https://storage.googleapis.com/mysten-walrus-binaries/latest/walrus-latest-$arch -o walrus-$arch
done
- name: Update Walrus Site
run: >
RUST_LOG=site_builder=debug,walrus=debug,info
site-builder
--config walrus-sites/site-builder/assets/builder-example.yaml
--list-directory
update bin ${{ vars.WALRUS_SITE_BIN_OBJECT }}