Skip to content

v1.0.0

v1.0.0 #5

Workflow file for this run

name: Deploy to PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
deploy:
name: Deploy to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/llms-txt-action
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Update version
run: |
VERSION=${GITHUB_REF#refs/tags/v}
uvx --from=toml-cli toml set --toml-path=pyproject.toml project.version $VERSION
- name: Build package
run: |
uv sync
uv build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1