File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments