Skip to content

ci: update github workflows #6

ci: update github workflows

ci: update github workflows #6

Workflow file for this run

name: CD
on:
workflow_dispatch:
push:
env:
FORCE_COLOR: 3
jobs:
publish:
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build package
run: pipx run build --wheel
- name: Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: dist/*.*
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/')
uses: pypa/gh-action-pypi-publish@release/v1