Skip to content

just address some minor local development annoyances #9

just address some minor local development annoyances

just address some minor local development annoyances #9

Workflow file for this run

name: Release
on:
push:
tags: [ "treq-*" ]
pull_request:
branches: [ trunk ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: pip install build twine
- run: python3 -m build
- run: twine check dist/*.*
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/*.*
if-no-files-found: error
pypi-publish:
runs-on: ubuntu-24.04
if: startsWith(github.ref, 'refs/tags/treq-')
needs: [build]
environment:
name: PyPI.org
url: https://pypi.org/project/treq
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1