Skip to content

Commit

Permalink
fix docs and clean up finish release (Deltares#1072)
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 authored Sep 27, 2024
1 parent 91e0cf4 commit 309075c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,21 @@ jobs:
- name: Generate docs
if: ${{ github.event_name != 'pull_request' }}
run: |
pixi run --locked -e full-py311 html
echo "DOC_VERSION=$(pixi run --locked -e full-py311 python -c 'from hydromt import __version__ as v; print("dev" if "dev" in v else "v"+v.replace(".dev",""))')" >> $GITHUB_ENV
pixi run --locked -e full-py311 docs
export CURRENT_VERSION=$(grep "__version__" hydromt/__init__.py | cut -d= -f 2 | tr -d "\" ")
if [ -z "$CURRENT_VERSION" ]; then
echo "Could not determine version, exiting..."
exit 1
fi
# are we a dev version or not?
if echo "$CURRENT_VERSION" | grep -q "dev"; then
# no dev, just echo the version number
echo "v$CURRENT_VERSION" >> "$GITHUB_ENV"
else
echo "dev" >> "$GITHUB_ENV"
fi
- name: Upload to GitHub Pages
if: ${{ github.event_name != 'pull_request' }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/finish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
branches:
- 'release/**'
workflow_dispatch:
inputs:
run_id:
type: number
description: "The id of the workflow run that created the artifacts"

jobs:
# publish-docker:
Expand Down

0 comments on commit 309075c

Please sign in to comment.