Skip to content

Update walrus-sites.yml #2

Update walrus-sites.yml

Update walrus-sites.yml #2

Workflow file for this run

name: Deploy Walrus Site using Walrus Sites GA
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build React app
env:
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }}
REACT_APP_ISSUER: ${{ secrets.REACT_APP_ISSUER }}
run: npm run build:holder
- name: Copy holder package to temporary directory
run: |
mkdir -p /tmp/holder
cp -r ./packages/holder/* /tmp/holder/
- name: Install dependencies in temporary directory
run: |
cd /tmp/holder
npm install
- name: Deploy site to Walrus
uses: zktx-io/[email protected]
with:
config-path: '/tmp/holder/builder.yaml'
site-path: '/tmp/holder/build'
network: 'testnet'
env:
SUI_ADDRESS: ${{ vars.SUI_ADDRESS }}
SUI_KEYSTORE: ${{ secrets.SUI_KEYSTORE }}