Skip to content

Publish to PyPI and GitHub #3

Publish to PyPI and GitHub

Publish to PyPI and GitHub #3

Workflow file for this run

name: Publish to PyPI and GitHub
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
build-n-publish:
name: Build and publish to PyPI
if: github.repository == 'run-llama/workflows'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build and publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
uv build
uv publish
- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
artifacts: "dist/*"
generateReleaseNotes: true