mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-12 19:30:30 +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
|
||||
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user