-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (41 loc) · 1018 Bytes
/
build.yml
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build
on: [push, pull_request]
jobs:
install:
name: Install
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: yarn
test:
name: Test
needs: install
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: yarn
- name: Test
run: yarn test-once
deploy:
name: Build and Deploy
needs: test
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: yarn
- name: Build and Deploy
run: |
git config user.email '[email protected]'
git config user.name 'Ian A. Cook'
git remote rm origin
git remote add origin '[email protected]:Susurrus-LLC/langua.git'
yarn deploy
env:
GITHUB_TOKEN: ${{ github.token }}