diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..4ed6744 --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/package.json b/package.json index 901ded9..383590b 100644 --- a/package.json +++ b/package.json @@ -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": {