diff --git a/.github/workflows/lts-dev.yml b/.github/workflows/lts-dev.yml index 1d8c49f9..8dbb1032 100644 --- a/.github/workflows/lts-dev.yml +++ b/.github/workflows/lts-dev.yml @@ -53,7 +53,7 @@ jobs: uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FRONTEND_7E17F }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APPS_LTS }}' expires: 30d projectId: apps-lts channelId: dev diff --git a/.github/workflows/lts-main.yml b/.github/workflows/lts-main.yml index a0774c5b..dc0482d7 100644 --- a/.github/workflows/lts-main.yml +++ b/.github/workflows/lts-main.yml @@ -19,7 +19,7 @@ jobs: name: Setup node with: node-version: 16 - cache: "yarn" + cache: 'yarn' - name: Install jq run: | @@ -35,16 +35,20 @@ jobs: alchemyFallback: ${{ secrets.ALCHEMY_FALLBACK_API_KEY }} run: NX_ALCHEMY_MAIN_API_KEY=$alchemyMain NX_ALCHEMY_FALLBACK_API_KEY=$alchemyFallback yarn nx build lts + - name: Copy Firebase LTS to Firebase + run: cp firebase.lts.json firebase.json + - name: Firebase deploy - env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN_FRONTEND_7E17F }} - run: | - yarn firebase use lts - yarn firebase deploy -c firebase.lts.json --only hosting + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APPS_LTS }}' + projectId: apps-lts + channelId: live - name: Discord notification env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} uses: Ilshidur/action-discord@0.3.2 with: - args: "✅ New PROD version of LTS 🚀 Deploy url: https://withdraw.mstable.org" + args: '✅ New PROD version of LTS 🚀 Deploy url: https://withdraw.mstable.org' diff --git a/.github/workflows/lts-preview.yml b/.github/workflows/lts-preview.yml index 9906e691..f0283422 100644 --- a/.github/workflows/lts-preview.yml +++ b/.github/workflows/lts-preview.yml @@ -54,6 +54,6 @@ jobs: uses: FirebaseExtended/action-hosting-deploy@v0 with: repoToken: '${{ secrets.GITHUB_TOKEN }}' - firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FRONTEND_7E17F }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_APPS_LTS }}' expires: 8d projectId: apps-lts diff --git a/.github/workflows/mstable-dev.yml b/.github/workflows/mstable-dev.yml index c1021f54..5446c302 100644 --- a/.github/workflows/mstable-dev.yml +++ b/.github/workflows/mstable-dev.yml @@ -6,9 +6,9 @@ on: branches: - main paths: - - "apps/mstable/**" - - "libs/mstable/**" - - "libs/shared/**" + - 'apps/mstable/**' + - 'libs/mstable/**' + - 'libs/shared/**' concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -29,8 +29,8 @@ jobs: - uses: actions/setup-node@v3 name: Setup node with: - node-version: 16 - cache: "yarn" + node-version: 18 + cache: 'yarn' - name: Install jq run: | @@ -46,13 +46,17 @@ jobs: alchemyFallback: ${{ secrets.ALCHEMY_FALLBACK_API_KEY }} run: 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 hosting:channel:deploy dev -c ./firebase.mstable.json --expires 30d + - name: Copy Firebase mStable to Firebase + run: cp firebase.mstable.json firebase.json + - name: Firebase deploy + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FRONTEND_7E17F }}' + expires: 30d + projectId: frontend-7e17f + channelId: dev # - name: Discord notification # env: # DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/mstable-main.yml b/.github/workflows/mstable-main.yml index 11575aa3..7b7f95ce 100644 --- a/.github/workflows/mstable-main.yml +++ b/.github/workflows/mstable-main.yml @@ -18,8 +18,8 @@ jobs: - uses: actions/setup-node@v3 name: Setup node with: - node-version: 16 - cache: "yarn" + node-version: 18 + cache: 'yarn' - name: Install jq run: | @@ -37,16 +37,20 @@ jobs: 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: Copy Firebase mStable to Firebase + run: cp firebase.mstable.json firebase.json + - 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 + uses: FirebaseExtended/action-hosting-deploy@v0 + with: + repoToken: '${{ secrets.GITHUB_TOKEN }}' + firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_FRONTEND_7E17F }}' + projectId: frontend-7e17f + channelId: live - name: Discord notification env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} uses: Ilshidur/action-discord@0.3.2 with: - args: "✅ New PROD version of mStable Vaults 🚀 Deploy url: https://yield.mstable.org" + args: '✅ New PROD version of mStable Vaults 🚀 Deploy url: https://yield.mstable.org'