Skip to content

chore: use toml-cli, uv build #34

chore: use toml-cli, uv build

chore: use toml-cli, uv build #34

Workflow file for this run

name: Publish Package
on:
push:
branches: [dev]
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
name: "Publish library"
# environment: publish
# permissions:
# id-token: write
steps:
- name: Check out
uses: actions/checkout@v4
with:
token: "${{ secrets.GITHUB_TOKEN }}"
fetch-depth: 0
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Build package
run: |
VERSION=$(uvx dunamai from any --no-metadata --style pep440)
echo $VERSION
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