diff --git a/.github/workflows/cd-linux.yaml b/.github/workflows/cd-linux.yaml index 90c745c5..f88f165c 100644 --- a/.github/workflows/cd-linux.yaml +++ b/.github/workflows/cd-linux.yaml @@ -17,7 +17,7 @@ jobs: - name: Check version tag format run: | TAG_VERSION="${{ github.event.release.tag_name }}" - if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+$ ]]; then exit 0; else exit 1; fi + if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi - name: Check if version tag and package version are equal run: | TAG_VERSION="${{ github.event.release.tag_name }}" @@ -82,4 +82,4 @@ jobs: - name: Publish release uses: softprops/action-gh-release@v2 with: - files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz \ No newline at end of file + files: nitropy-${{ github.event.release.tag_name }}-x64-linux-binary.tar.gz diff --git a/.github/workflows/cd-pypi.yaml b/.github/workflows/cd-pypi.yaml index f4618598..d7b722b0 100644 --- a/.github/workflows/cd-pypi.yaml +++ b/.github/workflows/cd-pypi.yaml @@ -17,7 +17,7 @@ jobs: - name: Check version tag format run: | TAG_VERSION="${{ github.event.release.tag_name }}" - if [[ $VERSION_TAG =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi + if [[ $TAG_VERSION =~ ^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$ ]]; then exit 0; else exit 1; fi - name: Check if version tag and package version are equal run: | TAG_VERSION="${{ github.event.release.tag_name }}" diff --git a/.github/workflows/cd-windows.yaml b/.github/workflows/cd-windows.yaml index b4666107..ecb160b2 100644 --- a/.github/workflows/cd-windows.yaml +++ b/.github/workflows/cd-windows.yaml @@ -17,7 +17,7 @@ jobs: - name: Check version tag format run: | $VERSION_TAG="${{ github.event.release.tag_name }}" - if ($VERSION_TAG -match "^v[0-9]+.[0-9]+.[0-9]+$") {exit 0} else {exit 1} + if ($VERSION_TAG -match "^v[0-9]+.[0-9]+.[0-9]+(-rc\.[1-9])?$") {exit 0} else {exit 1} - name: Check if version tag and package version are equal run: | $VERSION_TAG="${{ github.event.release.tag_name }}" @@ -175,4 +175,4 @@ jobs: - name: Publish release uses: softprops/action-gh-release@v2 with: - files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi \ No newline at end of file + files: nitropy-${{ github.event.release.tag_name }}-x64-windows-installer.msi