mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-15 04:40:36 +02:00
fix: pipeline now pushes pre-release versions
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -46,7 +46,6 @@ jobs:
|
|||||||
- run: python test.py
|
- run: python test.py
|
||||||
|
|
||||||
tag_and_publish:
|
tag_and_publish:
|
||||||
if: github.ref == 'refs/heads/master'
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
needs: test
|
||||||
permissions:
|
permissions:
|
||||||
@@ -73,7 +72,13 @@ jobs:
|
|||||||
major-identifier: "breaking:"
|
major-identifier: "breaking:"
|
||||||
|
|
||||||
- name: Create Tag
|
- 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
|
- name: Push tag
|
||||||
run: git push origin ${{ steps.git_version.outputs.version }}
|
run: git push origin ${{ steps.git_version.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user