From b8f57e8bdce5b8391ba70655d4b2c341dd94dec0 Mon Sep 17 00:00:00 2001 From: jrfk Date: Sat, 4 Oct 2025 01:53:26 +0900 Subject: [PATCH] ci(release): ensure release exists and clobber assets --- .github/workflows/workflow.yml | 15 +++++++++------ pyproject.toml | 5 +++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 26e3b88..273630a 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -93,14 +93,16 @@ jobs: inputs: >- ./dist/*.tar.gz ./dist/*.whl - - name: Create GitHub Release + - name: Ensure GitHub Release exists env: GITHUB_TOKEN: ${{ github.token }} - run: >- - gh release create - "${GITHUB_REF_NAME}" - --repo "${GITHUB_REPOSITORY}" - --notes "" + run: | + set -euo pipefail + if gh release view "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" >/dev/null 2>&1; then + echo "Release ${GITHUB_REF_NAME} already exists" + else + gh release create "${GITHUB_REF_NAME}" --repo "${GITHUB_REPOSITORY}" --notes "" + fi - name: Upload artifact signatures to GitHub Release env: GITHUB_TOKEN: ${{ github.token }} @@ -111,3 +113,4 @@ jobs: gh release upload "${GITHUB_REF_NAME}" dist/** --repo "${GITHUB_REPOSITORY}" + --clobber diff --git a/pyproject.toml b/pyproject.toml index 56db80a..12b4fdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,6 +3,11 @@ name = "atv" description = "atv(async task viewer): a TUI tool for experimenting with Python 3.14 asyncio ps/pstree features" readme = "README.md" requires-python = ">=3.14" +classifiers = [ + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3 :: Only", + "Programming Language :: Python :: 3.14", +] dependencies = [ "textual>=0.57,<0.61", "psutil>=5.9",