forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1 KB
/
guide.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
name: Meteor Guide PR
on:
pull_request:
paths:
- 'guide/**/*'
jobs:
preview:
runs-on: ubuntu-latest
defaults:
run:
working-directory: guide/
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Build the Guide
run: npm ci && npm run build
- name: Deploy to Netlify for preview
uses: nwtgck/[email protected]
with:
publish-dir: './guide/public'
production-branch: devel
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: Deploy from GitHub Actions ${{ github.event.pull_request.title }}
netlify-config-path: './guide/netlify.toml'
alias: deploy-preview-${{ github.event.number }}
enable-pull-request-comment: false
enable-commit-comment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_GUIDE_SITE_ID }}