Skip to content

Commit

Permalink
chore: use toml-cli, uv build
Browse files Browse the repository at this point in the history
  • Loading branch information
phi-friday committed Sep 7, 2024
1 parent eb08372 commit e46382b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish Package

on:
push:
branches: [dev]
release:
types: [created]

Expand All @@ -26,9 +28,9 @@ jobs:
run: |
VERSION=$(uvx dunamai from any --no-metadata --style pep440)
echo $VERSION
sed -i'' -E "s/version = \"0.0.0\"/version = \"$VERSION\"/g" pyproject.toml
uvx --from build pyproject-build --installer uv
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
uv build
- name: Publish package distributions to PyPI
id: publish-pypi
uses: pypa/gh-action-pypi-publish@release/v1
# - name: Publish package distributions to PyPI
# id: publish-pypi
# uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit e46382b

Please sign in to comment.