diff --git a/.github/workflows/_reusable-release-status.yaml b/.github/workflows/_reusable-release-status.yaml index b855f284ea..ac5b7cea73 100644 --- a/.github/workflows/_reusable-release-status.yaml +++ b/.github/workflows/_reusable-release-status.yaml @@ -57,6 +57,9 @@ on: prod-status: required: true type: string + beta-status: + required: true + type: string jobs: check-status: @@ -64,13 +67,15 @@ jobs: steps: - name: Verify workflow status run: | - if [[ "${{ inputs.rc-status }}" == "failure" || "${{ inputs.prod-status }}" == "failure" ]]; then + if [[ "${{ inputs.rc-status }}" == "failure" || "${{ inputs.prod-status }}" == "failure" || "${{ inputs.beta-status }}" == "failure" ]]; then echo "::error::Release workflow failed" exit 1 fi if [[ "${{ inputs.version }}" =~ -rc ]]; then echo "Release candidate ${{ inputs.version }} processed successfully" + elif [[ "${{ inputs.version }}" =~ b[0-9]+ ]]; then + echo "Beta release ${{ inputs.version }} processed successfully" else echo "Production release ${{ inputs.version }} completed successfully" fi diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index bcb203506f..6492214dc4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -50,6 +50,7 @@ on: tags: - "v*.*.*" - "v*.*.*-rc*" + - "v*.*.*b*" workflow_dispatch: inputs: version: @@ -86,7 +87,17 @@ jobs: production-release-process: needs: [validation] - if: ${{ !contains(needs.validation.outputs.version, '-rc') }} + if: ${{ !contains(needs.validation.outputs.version, '-rc') && !contains(needs.validation.outputs.version, 'b') }} + uses: ./.github/workflows/_reusable-production-release-process.yaml + with: + version: ${{ needs.validation.outputs.version }} + artifact-name: ${{ needs.validation.outputs.artifact-name }} + secrets: + pypi-token: ${{ secrets.PYPI_TOKEN }} + + beta-release-process: + needs: [validation] + if: contains(needs.validation.outputs.version, 'b') uses: ./.github/workflows/_reusable-production-release-process.yaml with: version: ${{ needs.validation.outputs.version }} @@ -95,10 +106,17 @@ jobs: pypi-token: ${{ secrets.PYPI_TOKEN }} status: - needs: [validation, rc-release-process, production-release-process] + needs: + [ + validation, + rc-release-process, + production-release-process, + beta-release-process, + ] if: always() && !inputs.dry_run uses: ./.github/workflows/_reusable-release-status.yaml with: version: ${{ needs.validation.outputs.version }} rc-status: ${{ needs.rc-release-process.result }} prod-status: ${{ needs.production-release-process.result }} + beta-status: ${{ needs.beta-release-process.result }} diff --git a/README.md b/README.md index ea525474b6..96140268ab 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ > > We value your input! Please test and share feedback via [GitHub Issues](https://github.com/openvinotoolkit/anomalib/issues) or our [Discussions](https://github.com/openvinotoolkit/anomalib/discussions) > -> Install beta: `pip install anomalib==2.0.0-beta.1` +> Install beta: `pip install anomalib==2.0.0b2` # 👋 Introduction @@ -72,16 +72,16 @@ pip install anomalib pip install anomalib[full] ``` -## 🌟 Beta Version (v2.0.0-beta.1) +## 🌟 Beta Version (v2.0.0b2) Try our latest beta release with new features and improvements: ```bash # Basic beta installation -pip install anomalib==2.0.0-beta.1 +pip install anomalib==2.0.0b2 # Full beta installation with all dependencies -pip install anomalib[full]==2.0.0-beta.1 +pip install anomalib[full]==2.0.0b2 ``` ### 🛠️ Installation Options diff --git a/src/anomalib/__init__.py b/src/anomalib/__init__.py index d84ebf934f..174ac4eaa4 100644 --- a/src/anomalib/__init__.py +++ b/src/anomalib/__init__.py @@ -34,7 +34,7 @@ from enum import Enum -__version__ = "2.0.0-beta.1" +__version__ = "2.0.0b2" class LearningType(str, Enum):