Skip to content

update build/release workflows #1

update build/release workflows

update build/release workflows #1

Workflow file for this run

name: Push Release Tags

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 32, Col: 9): Unexpected value 'uses', (Line: 33, Col: 9): Unexpected value 'with'
on:
push:
tags:
- '**'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# we need to fetch the full repo history to use setuptools_scm
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "0.10.7"
python-version: "3.14"
enable-cache: true
- name: Sync dependencies
run: uv sync --all-extras --dev
- name: Build Python package
run: |
uv build
- name: Upload package distributions as artifact
uses: actions/upload-artifact@v7
with:
name: python-package-distributions
path: |
dist/
!dist/.gitignore
pypi-publish:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/python-tind-client
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
- name: Download built package distributions
uses: actions/download-artifact@v8
with:
name: python-package-distributions
path: dist/
- name: Public package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1