Skip to content

Commit

Permalink
using uv
Browse files Browse the repository at this point in the history
  • Loading branch information
lnxpy committed Nov 20, 2024
1 parent 0f03f78 commit 000112a
Showing 1 changed file with 14 additions and 22 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
name: Package Releasing
name: Release Package

on:
push:
tags:
- v*
workflow_dispatch:
release:
types: ["published"]

jobs:
pypi-publish:
name: upload release to PyPI
release:
name: Build and publish a new release
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Set up Python
run: uv python install 3.13

- name: Build package
run: python -m build
- name: Build
run: uv build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Publish
run: uv publish -t ${{ secrets.PYPI_TOKEN }}

0 comments on commit 000112a

Please sign in to comment.