forked from grammyjs/website
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.1 KB
/
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
name: Build
on:
push:
branches: [main]
paths:
- "**.md"
pull_request:
types: ["opened", "edited", "synchronize"]
paths:
- "**.md"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: npm ci
working-directory: site/
- name: Build site
run: npm run docs:build
working-directory: site/
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: "./site/docs/.vuepress/dist"
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: ${{ github.event.pull_request.title }}
enable-pull-request-comment: true
enable-commit-comment: false
overwrites-pull-request-comment: true
fails-without-credentials: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1