Update config.ts #15
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: Copy holder package to temporary directory | |
run: | | |
mkdir -p /tmp/holder | |
cp -r ./packages/holder/* /tmp/holder/ | |
mkdir -p /tmp/verifier | |
cp -r ./packages/verifier/* /tmp/verifier/ | |
- name: Install dependencies in temporary directory and Build React app | |
env: | |
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }} | |
REACT_APP_ISSUER: ${{ secrets.REACT_APP_ISSUER }} | |
run: | | |
cd /tmp/holder | |
npm install | |
npm run build | |
- name: Deploy site to Walrus Pass - Holder | |
uses: zktx-io/[email protected] | |
with: | |
config-path: '/tmp/holder/builder.yaml' | |
site-path: '/tmp/holder/build' | |
object-id: '0xc6fee78376d0041b30e4ebd6eb54a0cbf03662c1f4825d0a90bdf075a41e43fd' | |
network: 'testnet' | |
env: | |
SUI_ADDRESS: ${{ vars.SUI_ADDRESS }} | |
SUI_KEYSTORE: ${{ secrets.SUI_KEYSTORE }} | |
- name: Install dependencies in temporary directory and Build React app | |
env: | |
REACT_APP_CLIENT_ID: ${{ secrets.REACT_APP_CLIENT_ID }} | |
REACT_APP_ISSUER: ${{ secrets.REACT_APP_ISSUER }} | |
run: | | |
cd /tmp/verifier | |
npm install | |
npm run build | |
- name: Deploy site to Walrus Pass - Verifier | |
uses: zktx-io/[email protected] | |
with: | |
config-path: '/tmp/verifier/builder.yaml' | |
site-path: '/tmp/verifier/build' | |
object-id: '0xea9fb41b170c78aaa25b1a018a7e16ce453487b6ae5e5014cf3b9ca7b54b46c0' | |
network: 'testnet' | |
env: | |
SUI_ADDRESS: ${{ vars.SUI_ADDRESS }} | |
SUI_KEYSTORE: ${{ secrets.SUI_KEYSTORE }} |