From 6aac0161ca35b18815df43c27da9ef266170f48d Mon Sep 17 00:00:00 2001 From: Daymon <17409137+daymxn@users.noreply.github.com> Date: Tue, 27 Aug 2024 21:08:16 -0500 Subject: [PATCH] Fix github pages (#2) Fixes the github pages deployment: - `working-directory` doesn't apply to `uses`- only `run`, so we need to add the `wiki/` prefix manually to the upload artifacts step - since we're using a custom domain, we should use an empty baseurl. - add a CNAME file in the static dir according to the [the docs](https://docusaurus.io/docs/deployment#github-pages-overview) I might be missing something, but lets throw it at the wall and see how it goes --------- Co-authored-by: Daymon --- .github/workflows/deploy.yaml | 2 +- .github/workflows/test-deploy.yaml | 48 +++++++++++++++--------------- wiki/docusaurus.config.ts | 2 +- wiki/static/CNAME | 0 4 files changed, 26 insertions(+), 26 deletions(-) create mode 100644 wiki/static/CNAME diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index afc130f..5d70ff3 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -30,7 +30,7 @@ jobs: - name: Upload Build Artifact uses: actions/upload-pages-artifact@v3 with: - path: build + path: wiki/build deploy: name: Deploy to GitHub Pages diff --git a/.github/workflows/test-deploy.yaml b/.github/workflows/test-deploy.yaml index 58f180f..b6f341e 100644 --- a/.github/workflows/test-deploy.yaml +++ b/.github/workflows/test-deploy.yaml @@ -1,28 +1,28 @@ -name: Test deployment +# name: Test deployment -on: - pull_request: - branches: - - main +# on: +# pull_request: +# branches: +# - main -defaults: - run: - working-directory: ./wiki +# defaults: +# run: +# working-directory: ./wiki -jobs: - test-deploy: - name: Test deployment - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: npm +# jobs: +# test-deploy: +# name: Test deployment +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v4 +# with: +# fetch-depth: 0 +# - uses: actions/setup-node@v4 +# with: +# node-version: 18 +# cache: npm - - name: Install dependencies - run: npm ci - - name: Test build website - run: npm run build \ No newline at end of file +# - name: Install dependencies +# run: npm ci +# - name: Test build website +# run: npm run build \ No newline at end of file diff --git a/wiki/docusaurus.config.ts b/wiki/docusaurus.config.ts index 0f26366..8513226 100644 --- a/wiki/docusaurus.config.ts +++ b/wiki/docusaurus.config.ts @@ -8,7 +8,7 @@ const config: Config = { tagline: "Context based Server-Side logging for ROBLOX.", favicon: "img/favicon.ico", url: "https://rlog.daymxn.com", - baseUrl: "/rlog/", + baseUrl: "/", organizationName: "daymxn", projectName: "rLog", onBrokenLinks: "throw", diff --git a/wiki/static/CNAME b/wiki/static/CNAME new file mode 100644 index 0000000..e69de29