Skip to content

Commit 515cbee

Browse files
authored
Apply Base Updates, Test more for dynamic (#196)
* Base Updates (slight rollback)
1 parent 27fa6d8 commit 515cbee

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,21 @@ on:
44
push:
55
branches: ["main"]
66

7+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
78
permissions:
89
contents: read
910
pages: write
1011
id-token: write
1112

13+
# Environment variables available to all jobs and steps in this workflow
1214
env:
1315
HUGO_ENV: production
1416
HUGO_VERSION: "0.118.2"
1517
GO_VERSION: "1.20.5"
1618
NODE_VERSION: "18.15.0"
1719

1820
jobs:
21+
# Build job
1922
build:
2023
runs-on: ubuntu-24.04-arm
2124
steps:
@@ -45,20 +48,6 @@ jobs:
4548
- name: Install npm dependencies
4649
run: npm install
4750

48-
- name: Determine Base URL
49-
id: base_url
50-
run: |
51-
REPO_NAME=$(echo "${{ github.repository }}" | cut -d '/' -f 2)
52-
if [[ "${{ github.repository_owner }}" == "${{ github.repository_owner }}" ]]; then
53-
BASE_URL="https://${{ github.repository_owner }}.github.io/${REPO_NAME}/"
54-
else
55-
BASE_URL="https://${{ github.repository_owner }}.github.io/"
56-
fi
57-
echo "BASE_URL=$BASE_URL" >> $GITHUB_ENV
58-
59-
- name: Modify hugo.toml
60-
run: sed -i "s|baseURL = .*|baseURL = \"$BASE_URL\"|" hugo.toml
61-
6251
- name: Build site
6352
run: npm run build
6453

@@ -67,6 +56,7 @@ jobs:
6756
with:
6857
path: ./public
6958

59+
# Deployment job
7060
deploy:
7161
environment:
7262
name: github-pages

hugo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###################### default configuration ####################
22
# The base URL of your site (required). This will be prepended to all relative URLs.
3-
# baseURL = "https://open-neuromorphic.org"
4-
baseURL = "https://neural-loop.github.io/open-neuromorphic.github.io/"
3+
baseURL = "https://open-neuromorphic.org"
4+
#baseURL = "https://neural-loop.github.io/open-neuromorphic.github.io/"
55
# Title of your website (required).
66
title = "Open Neuromorphic"
77

0 commit comments

Comments
 (0)