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