Skip to content

mstable Main

mstable Main #17

Workflow file for this run

name: mstable Main
on:
workflow_dispatch:
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
build_and_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
name: Checkout [main]
with:
fetch-depth: 0
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: 16
cache: "yarn"
- name: Install jq
run: |
sudo apt-get update
sudo apt-get install jq
- run: yarn install --frozen-lockfile
name: Install dependencies
- name: Build
env:
mainnet: ${{ secrets.NX_THE_GRAPH_MV_MAINNET_URL }}
goerli: ${{ secrets.NX_THE_GRAPH_MV_GOERLI_URL }}
alchemyMain: ${{ secrets.ALCHEMY_MAIN_API_KEY }}
alchemyFallback: ${{ secrets.ALCHEMY_FALLBACK_API_KEY }}
run: NX_THE_GRAPH_MV_MAINNET_URL=$mainnet NX_THE_GRAPH_MV_GOERLI_URL=$goerli NX_ALCHEMY_MAIN_API_KEY=$alchemyMain NX_ALCHEMY_FALLBACK_API_KEY=$alchemyFallback yarn nx build mstable
- name: Firebase deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN_FRONTEND_7E17F }}
run: |
yarn firebase use mstable
yarn firebase deploy -c firebase.mstable.json --only hosting
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/[email protected]
with:
args: "✅ New PROD version of mStable Vaults 🚀 Deploy url: https://yield.mstable.org"