Skip to content

Merge pull request #104 from DCC-Lab/release/1.3.0 #4

Merge pull request #104 from DCC-Lab/release/1.3.0

Merge pull request #104 from DCC-Lab/release/1.3.0 #4

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "v*"
jobs:
build:
name: Build distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
# setuptools_scm derives the version from git tags and history.
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Build sdist and wheel
run: |
python -m pip install --upgrade build
python -m build
- uses: actions/upload-artifact@v7
with:
name: dist
path: dist/
publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/hardwarelibrary
permissions:
# id-token for Trusted Publishing (OIDC, no API token); contents to create
# the GitHub Release.
id-token: write
contents: write
steps:
- uses: actions/download-artifact@v8
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: dist/*