test gh pages

This commit is contained in:
Skillz
2020-11-18 13:34:35 -05:00
parent a8c74c82e5
commit ca40933155
2 changed files with 31 additions and 1 deletions

30
.github/workflows/gatsby.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Gatsby GH Pages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Gatsby Publish
uses: enriikke/gatsby-gh-pages-action@v2.1.1
with:
access-token: ${{ secrets.ACCESS_TOKEN }}
deploy-branch: gh-pages
working-dir: docs
gatsby-args: --prefix-paths