add github action

This commit is contained in:
liangping
2023-05-20 11:20:07 +08:00
parent 25497e97ad
commit 437359deff
6 changed files with 141 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
name: Deploy to ping.pub
on:
push:
branches: [ master ]
# 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: Install
run: yarn install --ignore-engines
- name: Build
run: yarn run vue-cli-service build
- name: Deploy
run: cp -rf ./dist/* /var/www/html/