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,