cosmos-explorer/.github/workflows/deploy.yaml
2021-11-18 14:16:28 +08:00

27 lines
496 B
YAML

name: Ping Deploy
on:
push:
branches: [ master, testnet ]
pull_request:
branches: [ master, testnet ]
jobs:
deploy:
name: Ping deploy
runs-on: ${GITHUB_REF_NAME}
steps:
- name: print
run: echo ${GITHUB_REF#refs/heads/}
- name: Git Checkout Latest
uses: actions/checkout@v2
- name: Install
run: yarn install
- name: Build
run: yarn run vue-cli-service build
- name: Deploy
run: cp -rf ./dist/* /var/www/html/