cosmos-explorer/.github/workflows/mainnet-deploy.yaml

27 lines
478 B
YAML
Raw Permalink Normal View History

2021-08-05 11:10:25 +00:00
2021-12-21 01:36:31 +00:00
name: Deploy to ping.pub
2021-08-05 11:10:25 +00:00
on:
push:
2021-11-18 06:34:58 +00:00
branches: [ master ]
2021-12-21 01:36:31 +00:00
# pull_request:
# branches: [ master ]
2021-08-05 11:10:25 +00:00
jobs:
deploy:
2021-08-05 11:14:33 +00:00
name: Ping deploy
2021-11-18 06:34:58 +00:00
runs-on: mainnet
2021-08-05 11:10:25 +00:00
steps:
2021-11-18 05:49:30 +00:00
- name: print
run: echo ${GITHUB_REF#refs/heads/}
2021-08-05 11:14:33 +00:00
- name: Git Checkout Latest
2021-08-05 11:10:25 +00:00
uses: actions/checkout@v2
2021-08-05 14:47:18 +00:00
- name: Install
2021-08-05 13:11:11 +00:00
run: yarn install
2021-08-05 13:12:59 +00:00
2021-08-05 14:47:18 +00:00
- name: Build
run: yarn run vue-cli-service build
- name: Deploy
run: cp -rf ./dist/* /var/www/html/