Skip to content

feat(release): productize v3.4.0 #1

feat(release): productize v3.4.0

feat(release): productize v3.4.0 #1

Workflow file for this run

name: Release assets
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build-release-assets:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Build wheel and sdist
run: |
python -m pip install --upgrade build twine
python -m build
python -m twine check dist/*
- name: Create or update GitHub release
env:
GH_TOKEN: ${{ github.token }}
TAG_NAME: ${{ github.ref_name }}
run: |
if gh release view "$TAG_NAME" >/dev/null 2>&1; then
gh release upload "$TAG_NAME" dist/* --clobber
else
gh release create "$TAG_NAME" dist/* --generate-notes --title "$TAG_NAME"
fi