-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 1.07 KB
/
gatsby_deploy.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
name: Gatsby Publish
on:
push:
branches: gatsby
paths-ignore:
- '**.md'
- doc/*
env:
GH_PAGES: ${{ secrets.GH_PAGES }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: enriikke/gatsby-gh-pages-action@v2
with:
access-token: ${{ secrets.GH_PAGES }}
deploy-branch: gh-pages
# gatsby-args: --prefix-paths
# steps:
# - name: GitHub Config
# run: |
# git config --global user.email "[email protected]"
# git config --global user.name "example"
# - name: Checkout
# uses: actions/checkout@v3
# - name: Install Node.js
# uses: actions/setup-node@v1
# with:
# node-version: '18.x'
# - name: Install dependencies
# run: npm ci
# - name: Install Gatsby CLI
# run: npm install -g gatsby-cli
# - name: Build
# run: gatsby build
# - name: Verify build
# run: ls -la public