Skip to content

Merge pull request #1002 from oraichain/hotfix-mainnet-v0.50 #431

Merge pull request #1002 from oraichain/hotfix-mainnet-v0.50

Merge pull request #1002 from oraichain/hotfix-mainnet-v0.50 #431

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Mainnet
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install Yarn
run: npm install -g yarn
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install Dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn
- name: COPY ENV
run: cp .env.example .env
- name: Build
run: yarn build
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
REACT_APP_SENTRY_ENVIRONMENT: production
CI: false
- name: Deploy to firebase
run: yarn firebase deploy --only hosting:oraiscan --token ${{ secrets.FIREBASE_TOKEN }}
- name: Send discord message
uses: appleboy/discord-action@master
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
username: "GitBot [oraiscan-frontend]"
message: "Deployed to mainnet. ${{ github.event.head_commit.author.name }}: ${{ github.event.head_commit.message }}"