Skip to content

Commit

Permalink
Set BASE_URL envvar in build.yml to repo's name (#4)
Browse files Browse the repository at this point in the history
Set the BASE_URL environment variable so the website is built properly
to be served with GitHub Actions. This env var is read by Myst while
building the website.
  • Loading branch information
santisoler authored Jan 8, 2024
1 parent 6b6c9b4 commit e4835cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
- name: Build website as static HTML
run: |
myst build --html
env:
BASE_URL: "/${{ github.events.repository.name }}"

# Store the website as a build artifact so we can deploy it later
- name: Upload HTML website as an artifact
Expand Down

0 comments on commit e4835cf

Please sign in to comment.