MystenLabs / walrus-docs

Documentation and examples for the Walrus decentralized storage system
https://docs.walrus.site
Apache License 2.0
21 stars 19 forks source link

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

Closed mlegner closed 1 month ago

mlegner commented 1 month ago

Successful workflow run: https://github.com/MystenLabs/walrus-docs/actions/runs/10006893810/job/27660483590

Closes #64

quepcompute commented 1 month ago

It's a bit unfortunate that we need a personal access token in the calling workflow This is is common practice within the Mysten org right now. AFAIK they're being used where workflows touch multiple repositories.

quepcompute commented 1 month ago
      - name: Copy site-builder binary
        run: "cp bin/site-builder site/site-builder-ubuntu-x86_64"

      - name: Update Walrus Site
        run: >
          RUST_LOG=site_builder=debug,walrus=debug,info
          site-builder
          --config walrus-sites/site-builder/assets/builder-example.yaml
          update --list-directory site ${{ vars.WALRUS_SITE_BIN_OBJECT }}

When the devnet workflow is being executed, the jobs for each arch are running in parallel, @mlegner can you confirm that only the ubuntu-x86_64 job needs to call out to this workflow?

mlegner commented 1 month ago

can you confirm that only the ubuntu-x86_64 job needs to call out to this workflow?

Ideally we would call this workflow when all three of the builds succeeded.