From ca40933155ebd78054ee4d9b2f3391e44459d339 Mon Sep 17 00:00:00 2001 From: Skillz Date: Wed, 18 Nov 2020 13:34:35 -0500 Subject: [PATCH] test gh pages --- .github/workflows/gatsby.yml | 30 ++++++++++++++++++++++++++++++ docs/config.js | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gatsby.yml diff --git a/.github/workflows/gatsby.yml b/.github/workflows/gatsby.yml new file mode 100644 index 000000000..9745903e9 --- /dev/null +++ b/.github/workflows/gatsby.yml @@ -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 diff --git a/docs/config.js b/docs/config.js index ad1b28355..074ae3e47 100644 --- a/docs/config.js +++ b/docs/config.js @@ -1,6 +1,6 @@ const config = { gatsby: { - pathPrefix: "/", + pathPrefix: "/Discordeno", siteUrl: "https://discordeno.js.org", gaTrackingId: null, trailingSlash: false,