-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 742 Bytes
/
build.yml
File metadata and controls
33 lines (31 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy
on:
# Manually trigger
workflow_dispatch:
# Trigger on push changes
push:
branches:
- master
paths:
- "src/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
cache: yarn
- name: Install
run: yarn
- name: Build
run: npx ng build
- name: Publish
run: |
git config --local user.name "Ethereal"
git config --local user.email "ethereal97@gmail.com"
git checkout --orphan static-site
git add -f dist
git commit -m "[Bot] Build by Github Action"
git push -f origin static-site