Skip to content

5.3.4

5.3.4 #2

Workflow file for this run

name: Deploy to Vercel
on:
push:
tags:
- 'mainnet-*'
- 'testnet-*'
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 Vercel CLI
run: npm install -g vercel
- name: Build project
run: npm run build
- name: Deploy to Vercel (Production)
if: startsWith(github.ref, 'refs/tags/mainnet-')
run: vercel --prod --token ${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
- name: Deploy to Vercel (Testnet)
if: startsWith(github.ref, 'refs/tags/testnet-')
run: |
url=$(vercel --prebuilt --token ${{ secrets.VERCEL_TOKEN }})
vercel alias set $url testnet.aresrpg.world --token ${{ secrets.VERCEL_TOKEN }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}