-
Notifications
You must be signed in to change notification settings - Fork 27
40 lines (35 loc) · 1.02 KB
/
nodejs.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
name: Deploy to GH pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.16.x]
steps:
- uses: actions/checkout@v2.3.1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install and Build
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ALGOLIA_ADMIN_KEY: ${{secrets.ALGOLIA_ADMIN_KEY}}
GATSBY_ALGOLIA_APP_ID: ${{secrets.GATSBY_ALGOLIA_APP_ID}}
GATSBY_ALGOLIA_SEARCH_KEY: ${{secrets.GATSBY_ALGOLIA_SEARCH_KEY}}
CNAME: smtpfieldmanual.com
run: |
npm install
npm install gatsby-cli@2.19.2 -g
gatsby build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages # The branch the action should deploy to.
folder: public # The folder the action should deploy.
env:
CNAME: smtpfieldmanual.com