Merge pull request #1 from entrypoint-zone/main #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: Clean Repository | |
run: rm -rf explorer | |
- name: Git Checkout Latest | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup config | |
run: cp -rf chains/* explorer/chains/ | |
- name: list files | |
run: ls -la explorer/chains | |
- name: copy logos | |
run: cp -rf logos/* explorer/public/ | |
- name: Build | |
run: cd explorer && yarn && yarn build | |
- name: Deploy | |
run: cp -rf explorer/dist/* /var/www/html/ |