Update gatsby filesystem setup
This commit is contained in:
parent
375355705a
commit
2faa036efe
26
.github/workflows/website-backup.yml
vendored
Normal file
26
.github/workflows/website-backup.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Website Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install
|
||||
uses: borales/actions-yarn@v3.0.0
|
||||
with:
|
||||
cmd: --cwd website install # will run `yarn install` command
|
||||
- name: Build
|
||||
uses: borales/actions-yarn@v3.0.0
|
||||
with:
|
||||
cmd: --cwd website build # will run `yarn build` command
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.ACCESS_TOKEN }}
|
||||
publish_dir: ./website/dist
|
18
.github/workflows/website.yml
vendored
18
.github/workflows/website.yml
vendored
@ -9,18 +9,8 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Install
|
||||
uses: borales/actions-yarn@v3.0.0
|
||||
- uses: actions/checkout@v3
|
||||
- uses: enriikke/gatsby-gh-pages-action@v2
|
||||
with:
|
||||
cmd: --cwd website install # will run `yarn install` command
|
||||
- name: Build
|
||||
uses: borales/actions-yarn@v3.0.0
|
||||
with:
|
||||
cmd: --cwd website build # will run `yarn build` command
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.ACCESS_TOKEN }}
|
||||
publish_dir: ./website/dist
|
||||
access-token: ${{ secrets.ACCESS_TOKEN }}
|
||||
working-dir: website
|
@ -28,14 +28,14 @@ module.exports = {
|
||||
{
|
||||
resolve: 'gatsby-source-filesystem',
|
||||
options: {
|
||||
path: `${__dirname}/content`,
|
||||
path: `${__dirname}/website/content`,
|
||||
name: 'content',
|
||||
},
|
||||
},
|
||||
{
|
||||
resolve: 'gatsby-source-filesystem',
|
||||
options: {
|
||||
path: `${__dirname}/data`,
|
||||
path: `${__dirname}/website/data`,
|
||||
name: 'data',
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user