-
Notifications
You must be signed in to change notification settings - Fork 321
45 lines (40 loc) · 1.19 KB
/
main.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
name: Build and Deploy
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Python
uses: actions/[email protected]
with:
python-version: '3.7'
- name: Setup pipenv
run: |
sudo -H pip install -U pipenv
pipenv install
- name: Build
run: |
make
test 6000 -lt $(cat _build/index.html | wc -l)
yarn install
yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Before Deploy
run: |
pipenv run htmlmin _build/index.html _build/index.html
- name: Netlify Actions
# You may pin to the exact commit or the version.
# uses: nwtgck/actions-netlify@f517512ae75beec8896aa7b027c1c72f01816200
uses: nwtgck/[email protected]
with:
publish-dir: _build
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
fails-without-credentials: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: 6f222827-83c1-4882-8d4e-6781973be25d
timeout-minutes: 2