File tree 2 files changed +6
-16
lines changed
2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : ["main"]
6
6
7
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
7
8
permissions :
8
9
contents : read
9
10
pages : write
10
11
id-token : write
11
12
13
+ # Environment variables available to all jobs and steps in this workflow
12
14
env :
13
15
HUGO_ENV : production
14
16
HUGO_VERSION : " 0.118.2"
15
17
GO_VERSION : " 1.20.5"
16
18
NODE_VERSION : " 18.15.0"
17
19
18
20
jobs :
21
+ # Build job
19
22
build :
20
23
runs-on : ubuntu-24.04-arm
21
24
steps :
45
48
- name : Install npm dependencies
46
49
run : npm install
47
50
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
-
62
51
- name : Build site
63
52
run : npm run build
64
53
67
56
with :
68
57
path : ./public
69
58
59
+ # Deployment job
70
60
deploy :
71
61
environment :
72
62
name : github-pages
Original file line number Diff line number Diff line change 1
1
# ##################### default configuration ####################
2
2
# 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/"
5
5
# Title of your website (required).
6
6
title = " Open Neuromorphic"
7
7
You can’t perform that action at this time.
0 commit comments