Skip to content

Commit

Permalink
Update for base gh pages deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Matty Stratton <[email protected]>
  • Loading branch information
mattstratton committed Mar 4, 2024
1 parent 7e31bf2 commit 84cc682
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 30 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build-deploy-and-preview.yml

This file was deleted.

Empty file added .github/workflows/deploy.yml
Empty file.
27 changes: 27 additions & 0 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Test deployment

on:
pull_request:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

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: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build

4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const config = {
title: 'DevOpsDays Chicago Runbooks',
tagline: 'Documentation for running the DevOpsDays Chicago event',
url: 'https://docs.devopsdayschi.org',
// baseUrl: '/',
baseUrl: process.env.GITHUB_ACTIONS ? `${process.env.BASE_URL}/` : "/",
baseUrl: '/',
trailingSlash: false,
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
Expand Down

0 comments on commit 84cc682

Please sign in to comment.