-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 833 Bytes
/
deploy.yml
File metadata and controls
29 lines (26 loc) · 833 Bytes
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
name: Deploy Gatsby SSG
on:
push:
branches:
- develop
workflow_dispatch: {}
jobs:
code-check:
uses: ./.github/workflows/code-check.yml
deploy:
environment: github-pages
name: Deploy
needs: code-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Gatsby Publish
env:
GATSBY_API_BASE_URL: ${{ secrets.GATSBY_API_BASE_URL }}
GATSBY_API_TOKEN: ${{ secrets.GATSBY_API_TOKEN }}
GATSBY_VOID_DOJO_PROXY_URL: ${{ secrets.GATSBY_VOID_DOJO_PROXY_URL }}
SOURCE_STRAPI_TOKEN: ${{ secrets.SOURCE_STRAPI_TOKEN }}
SOURCE_STRAPI_URL: ${{ secrets.SOURCE_STRAPI_URL }}
uses: enriikke/gatsby-gh-pages-action@v2.2.1
with:
access-token: ${{ secrets.ACCESS_TOKEN }}