fix: pipeline now pushes pre-release versions

This commit is contained in:
2024-10-24 11:30:51 +02:00
parent 4a5a777ef5
commit cfa1da08d3

View File

@@ -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 }}