Skip to content

Commit 70675b1

Browse files
authored
Merge pull request #244 from sikepuri-algorithm/update-build-actions
Update build actions
2 parents 7c69095 + 2cf7f42 commit 70675b1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
- name: Build
2424
uses: ./.github/actions/build
25+
with:
26+
base-url: "/"
2527

2628
- name: Deploy
2729
uses: JamesIves/github-pages-deploy-action@v4

.github/workflows/preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Execute Notebooks
2323
uses: ./.github/actions/execute-notebooks
2424

25-
- name: Calculate BASE_URL
25+
- name: Make BASE_URL
2626
run: echo ${{ github.ref }} | sed "s/[^0-9]//g" | (v=$(cat); echo -e "BASE_URL=/pr-preview/pr-$v/" ) >> $GITHUB_ENV
2727

2828
- name: Build

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const config = {
1313
title: "Introduction to Algorithms",
1414
// tagline: '',
1515
url: "https://sikepuri-algorithm.github.io",
16-
baseUrl: process.env.BASE_URL,
16+
baseUrl: process.env.NODE_ENV ? "/" : process.env.BASE_URL,
1717
onBrokenLinks: "throw",
1818
onBrokenMarkdownLinks: "warn",
1919
favicon: "img/favicon.ico",

0 commit comments

Comments
 (0)