From cfa1da08d3f2230f884373dc9022b64e2cac3b33 Mon Sep 17 00:00:00 2001 From: Conrad Date: Thu, 24 Oct 2024 11:30:51 +0200 Subject: [PATCH] fix: pipeline now pushes pre-release versions --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c273c1..e1b949e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,7 +46,6 @@ jobs: - run: python test.py tag_and_publish: - if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest needs: test permissions: @@ -73,7 +72,13 @@ jobs: major-identifier: "breaking:" - name: Create Tag - run: git tag ${{ steps.git_version.outputs.version }} + if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' + run: | + if [ "${{ github.ref }}" == "refs/heads/master" ]; then + git tag ${{ steps.git_version.outputs.version }} + elif [ "${{ github.ref }}" == "refs/heads/dev" ]; then + git tag ${{ steps.git_version.outputs.version }}-rc + fi - name: Push tag run: git push origin ${{ steps.git_version.outputs.version }}