Skip to content

Commit

Permalink
Create deploy.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
liangping authored Sep 9, 2023
1 parent 3abdcd8 commit 68310f6
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: Deploy to ping.pub

on:
push:
branches: [ main ]
# pull_request:
# branches: [ master ]

jobs:
deploy:
name: Ping deploy
runs-on: mainnet
steps:
- name: Environment
run: export NODE_OPTIONS="--max_old_space_size=4096"

- name: Git Checkout Latest
uses: actions/checkout@v3

- name: Update Submodule
run: git submodule update

- name: Setup config
run: cp -rf chains explorer/chains

- name: Install
run: yarn install --ignore-engines

- name: Build
run: yarn build

- name: Deploy
run: cp -rf ./dist/* /var/www/html/

0 comments on commit 68310f6

Please sign in to comment.