Skip to content

Bump to 1.2.0

Bump to 1.2.0 #20

Workflow file for this run

# This is a GitHub workflow defining a set of jobs with a set of steps.
# ref: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
#
name: Release
# always build releases (to make sure wheel-building works)
# but only publish to PyPI on tags
on:
pull_request:
paths-ignore:
- "*.md"
- ".github/workflows/*.yaml"
- "!.github/workflows/release.yaml"
push:
branches:
- main
tags: ["**"]
workflow_dispatch:
jobs:
build-release:
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: install build package
run: |
pip install --upgrade pip
pip install build
pip freeze
- name: build release
run: |
python -m build --sdist --wheel .
ls -l dist
- name: publish to pypi
uses: pypa/gh-action-pypi-publish@v1.8.6
if: startsWith(github.ref, 'refs/tags/')