Skip to content

Commit 2bf253c

Browse files
committed
fix: Fetch annotated tags upfront
1 parent e364e7a commit 2bf253c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/default.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ jobs:
1212
uses: actions/checkout@v4
1313
with:
1414
lfs: true
15+
- name: Check current git-based package version
16+
run: |
17+
git fetch --tags --force
18+
git describe --long
1519
- name: Set up Python
1620
uses: actions/setup-python@v5
1721
with:
1822
python-version: '3.13'
1923
- name: Install uv
2024
uses: astral-sh/setup-uv@v5
21-
- name: Check current git-based package version
22-
run: |
23-
git fetch --tags --force
24-
git describe --long
2525
- name: Build sdist
2626
run: |
2727
uv sync
@@ -57,6 +57,10 @@ jobs:
5757
uses: actions/checkout@v4
5858
with:
5959
lfs: true
60+
- name: Check current git-based package version
61+
run: |
62+
git fetch --tags --force
63+
git describe --long
6064
- name: Set up Python
6165
uses: actions/setup-python@v5
6266
with:
@@ -67,10 +71,6 @@ jobs:
6771
run: |
6872
sudo apt install -y xz-utils
6973
uv sync
70-
- name: Check current git-based package version
71-
run: |
72-
git fetch --tags --force
73-
git describe --long
7474
- name: Build wheel
7575
run: |
7676
uv run python scripts/build.py --arch ${{ matrix.platform.arch }}

0 commit comments

Comments
 (0)