-
Notifications
You must be signed in to change notification settings - Fork 33
51 lines (45 loc) · 1.61 KB
/
update-binaries.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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