Skip to content

Commit e539dfa

Browse files
author
chunyu
committed
tag
1 parent 454b11e commit e539dfa

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 0
2022

2123
- name: Install uv
2224
uses: astral-sh/setup-uv@v6
@@ -32,8 +34,22 @@ jobs:
3234
- name: Build package
3335
run: uv build
3436

37+
- name: Get version from pyproject.toml
38+
id: version
39+
run: echo "version=$(grep -m1 'version' pyproject.toml | cut -d'"' -f2)" >> $GITHUB_OUTPUT
40+
41+
- name: Create tag if not exists
42+
if: startsWith(github.ref, 'refs/heads/')
43+
run: |
44+
TAG="v${{ steps.version.outputs.version }}"
45+
if ! git rev-parse "$TAG" >/dev/null 2>&1; then
46+
git tag "$TAG"
47+
git push origin "$TAG"
48+
fi
49+
3550
- name: Create GitHub Release
3651
uses: softprops/action-gh-release@v2
3752
with:
53+
tag_name: v${{ steps.version.outputs.version }}
3854
files: dist/*
39-
generate_release_notes: true
55+
generate_release_notes: true

.github/workflows/run-sqlite-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
--gold_fp data/sqlite/dev.json \
3737
--preds_fp data/sqlite/dail.txt \
3838
--output_dir results
39+
--workers 32
3940
4041
- name: Upload results as artifact
4142
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)