Skip to content

Commit

Permalink
Fix versioning on docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewcarbone committed Nov 7, 2024
1 parent b626c0c commit c8bd954
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

env:
MP_API_KEY: ${{ secrets.MP_API_KEY }}
GITHUB_ACTION_IS_RUNNING: 1

runs-on: ${{ matrix.os }}
strategy:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ doc = [
"ipython",
"matplotlib",
"myst-parser",
"dunamai==1.19.2",
]
build = [
"flit~=3.7",
Expand Down
1 change: 1 addition & 0 deletions scripts/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ pip install toml
bash scripts/install.sh
bash scripts/install.sh doc
echo "__version__ = '$(dunamai from any --style=pep440 --no-metadata)'" >lightshow/_version.py
cat lightshow/_version.py
build_docs
git checkout lightshow/_version.py

0 comments on commit c8bd954

Please sign in to comment.