File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9191 - uses : actions/checkout@v5
9292
9393 - name : Initialize submodules
94- env :
95- GIT_ASKPASS : /bin/echo
96- GH_PAT : ${{ secrets.GH_PAT }}
97- run : |
98- git config --global url."https://${GH_PAT}@github.com/".insteadOf "https://github.com/"
99- git submodule update --init --recursive
94+ run : git submodule update --init --recursive
10095
10196 - name : Install uv
10297 uses : astral-sh/setup-uv@v6
Original file line number Diff line number Diff line change 5151 with :
5252 enable-cache : true
5353
54- - name : Set up Python
55- run : uv python install
54+ - name : Set version from tag
55+ run : |
56+ if [[ "$GITHUB_REF" == refs/tags/* ]]; then
57+ TAG_VERSION=${GITHUB_REF#refs/tags/}
58+ # Remove 'v' prefix if present
59+ VERSION=${TAG_VERSION#v}
60+ echo "Setting version to: $VERSION"
61+ uv version "$VERSION"
62+ else
63+ echo "Not building from a tag, using default version"
64+ fi
5665
5766 - name : Install dependencies
5867 run : uv sync --locked --group docs
You can’t perform that action at this time.
0 commit comments