From 635ee2d38bebf38640763595d850504ded52330f Mon Sep 17 00:00:00 2001 From: Egor Dmitriev Date: Wed, 19 Nov 2025 14:26:11 +0100 Subject: [PATCH 1/2] change(#635): Deleted v4 script in favor of release branch. Signed-off-by: Egor Dmitriev --- .github/workflows/release-v4.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release-v4.yaml b/.github/workflows/release-v4.yaml index f49a1686d..339c44a8d 100644 --- a/.github/workflows/release-v4.yaml +++ b/.github/workflows/release-v4.yaml @@ -1,4 +1,5 @@ # SPDX-FileCopyrightText: 2025 Contributors to the OpenSTEF project +# SPDX-FileCopyrightText: 2025 Contributors to the OpenSTEF project # SPDX-License-Identifier: MPL-2.0 name: Release V4 From 9d64caab81d4fd9de56f07b650fe41271fd26af1 Mon Sep 17 00:00:00 2001 From: Egor Dmitriev Date: Wed, 19 Nov 2025 14:27:21 +0100 Subject: [PATCH 2/2] change(#635): Deleted v4 script in favor of release branch. Signed-off-by: Egor Dmitriev --- .github/workflows/release-v4.yaml | 92 ------------------------------- 1 file changed, 92 deletions(-) delete mode 100644 .github/workflows/release-v4.yaml diff --git a/.github/workflows/release-v4.yaml b/.github/workflows/release-v4.yaml deleted file mode 100644 index 339c44a8d..000000000 --- a/.github/workflows/release-v4.yaml +++ /dev/null @@ -1,92 +0,0 @@ -# SPDX-FileCopyrightText: 2025 Contributors to the OpenSTEF project -# SPDX-FileCopyrightText: 2025 Contributors to the OpenSTEF project -# SPDX-License-Identifier: MPL-2.0 - -name: Release V4 -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - release: - types: [published] - workflow_dispatch: - inputs: - version: - description: 'Version tag to release (e.g., v4.1.0 or 4.1.0). Prefixing with v is optional.' - required: true - default: '' - publish: - description: 'Whether to publish packages after the build (true/false).' - required: false - default: false - type: boolean - -permissions: - contents: read - -jobs: - quality: - if: ${{ startsWith(github.ref, 'refs/tags/v4.') || (github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.version, 'v4')) }} - name: Quality Checks - uses: ./.github/workflows/_job_quality_check.yaml - - release-pypi-package: - name: Release PyPI Package - needs: quality - runs-on: ubuntu-latest - if: ${{ (startsWith(github.ref, 'refs/tags/v4.') || (github.event_name == 'workflow_dispatch' && startsWith(github.event.inputs.version, 'v4'))) && needs.quality.result == 'success' }} - permissions: - # IMPORTANT: this permission is mandatory for trusted publishing - id-token: write - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - show-progress: false - - name: Install uv - uses: astral-sh/setup-uv@v6 - with: - activate-environment: true - enable-cache: true - - name: Install build dependencies - run: uv sync --frozen --no-install-project --all-groups --all-extras - - # Start of release steps - - name: Set version from release - id: ver - env: - RELEASE_TAG: ${{ github.event.release.tag_name }} - INPUT_VERSION: ${{ github.event.inputs.version }} - run: | - # Prefer release payload tag_name, otherwise fallback to the workflow_dispatch input - if [ -n "$RELEASE_TAG" ]; then - VERSION="$RELEASE_TAG" - elif [ -n "$INPUT_VERSION" ]; then - VERSION="$INPUT_VERSION" - else - # As a last-resort fallback, try to get the ref tag from GITHUB_REF - if [[ "$GITHUB_REF" == refs/tags/* ]]; then - VERSION="${GITHUB_REF#refs/tags/}" - else - echo "No version provided via release or workflow input, aborting" - exit 1 - fi - fi - # Remove leading 'v' if present - VERSION="${VERSION#v}" - echo "Release version: $VERSION" - echo "version=${VERSION}" >> "$GITHUB_OUTPUT" - - name: Apply version - run: poe version --version "${{ steps.ver.outputs.version }}" - - name: Build all packages - run: poe build - - name: Publish packages - if: ${{ github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish == true) }} - env: - UV_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }} - UV_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: uv publish - - name: Summary - run: echo "Published version ${{ steps.ver.outputs.version }}" \ No newline at end of file