Update walrus-sites.yml #2
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: 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 }} |