Update deploy-walrus-site.yaml #16
This file contains hidden or 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: Update 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: Install dependencies | |
run: | | |
npm ci | |
- name: Build Next.js app | |
run: | | |
npm run build | |
- name: Deploy site to Walrus | |
uses: zktx-io/walrus-sites-ga@v0.2.11 | |
with: | |
site-path: './out' # Adjust the path to the output directory (Next.js builds to "out" by default) | |
network: 'testnet' | |
epochs: 100 | |
object-id: '0x5d4a356b03d189f74ef45298c191855dac622af27129bb257849ce9c3d5f63f6' | |
env: | |
SUI_ADDRESS: ${{ vars.SUI_ADDRESS }} | |
SUI_KEYSTORE: ${{ secrets.SUI_KEYSTORE }} |