Skip to content

Commit ed4832a

Browse files
author
Murilo M. Marinho
committed
[GithubActions] Adding BASE_URL
1 parent aca2410 commit ed4832a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/notebook_to_html.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,23 @@ jobs:
2222
# The type of runner that the job will run on
2323
runs-on: ubuntu-latest
2424

25-
# https://stackoverflow.com/questions/75319573/failing-to-deploy-github-pages-because-of-write-permission
25+
# https://github.com/actions/starter-workflows/blob/55eb18560f57898549b12afa6defe7cc79705d6a/pages/static.yml#L13
2626
permissions:
27-
id-token: write
27+
contents: read
2828
pages: write
29+
id-token: write
2930

3031
# Steps represent a sequence of tasks that will be executed as part of the job
3132
steps:
3233
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
3334
- uses: actions/checkout@v4
3435

3536
# Runs a set of commands using the runners shell
37+
# https://mystmd.org/guide/deployment-github-pages#fn-except-custom-domains
3638
- name: Install dependencies and build page
3739
run: |
3840
python -m pip install jupyter-book --pre
41+
export BASE_URL="https://marinholab.github.io/OpenExecutableBooksRobotics/"
3942
python -m jupyter book build --html --execute
4043
4144
# https://jupyterbook.org/en/stable/publish/gh-pages.html

0 commit comments

Comments
 (0)