diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..ca711c3 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -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/