Skip to content

v3.2.1

v3.2.1 #103

Workflow file for this run

name: publish
on:
release:
types: [published]
workflow_dispatch:
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: build package
run: "pip wheel --no-deps --use-pep517 --wheel-dir=dist ."
- name: save artifact
uses: actions/upload-artifact@v4
with:
name: wheel
path: dist
pypi:
needs: build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/creosote
permissions:
id-token: write
steps:
- name: retrieve artifact
uses: actions/download-artifact@v4
with:
name: wheel
path: dist
- name: publish wheel
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1