Create main yml

This commit is contained in:
samnyan 2020-02-01 13:41:41 +08:00
parent e16b97e18e
commit 8f41121a27
2 changed files with 27 additions and 1 deletions

25
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install Dependencies
run: npm install
- name: Deploy
env:
CI: true
GH_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
run: npm run deploy -- --cname "aqua.samnyan.icu" --name="samnyan" --email=4137880+samnyan@users.noreply.github.com

View File

@ -7,7 +7,8 @@
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
"e2e": "ng e2e",
"deploy": "ng deploy"
},
"private": true,
"dependencies": {