Skip to content

Commit e71cb67

Browse files
committed
Base Updates (slight rollback)
1 parent 27fa6d8 commit e71cb67

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1+
# Sample workflow for building and deploying a Hugo site to GitHub Pages
12
name: Deploy Hugo site to Pages
23

34
on:
5+
# Runs on pushes targeting the default branch
46
push:
57
branches: ["main"]
68

9+
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
710
permissions:
811
contents: read
912
pages: write
1013
id-token: write
1114

15+
# Environment variables available to all jobs and steps in this workflow
1216
env:
1317
HUGO_ENV: production
1418
HUGO_VERSION: "0.118.2"
1519
GO_VERSION: "1.20.5"
1620
NODE_VERSION: "18.15.0"
1721

1822
jobs:
23+
# Build job
1924
build:
2025
runs-on: ubuntu-24.04-arm
2126
steps:
@@ -45,20 +50,6 @@ jobs:
4550
- name: Install npm dependencies
4651
run: npm install
4752

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-
6253
- name: Build site
6354
run: npm run build
6455

@@ -67,6 +58,7 @@ jobs:
6758
with:
6859
path: ./public
6960

61+
# Deployment job
7062
deploy:
7163
environment:
7264
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)