Compare commits

..

10 Commits
2.0.0 ... 2.0.1

View File

@@ -12,7 +12,6 @@ on:
- "**/CHANGELOG.md" - "**/CHANGELOG.md"
pull_request: pull_request:
branches: branches:
- master
- dev - dev
workflow_dispatch: workflow_dispatch:
@@ -46,7 +45,7 @@ jobs:
tag_and_publish: tag_and_publish:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref_name == 'dev' || github.ref_name == 'master' && github.event_name == 'push' if: github.ref_name == 'master' || github.ref_name == 'dev'
needs: test needs: test
permissions: permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
@@ -84,11 +83,19 @@ jobs:
version_format: ${{ steps.version_format.outputs.version_format }} version_format: ${{ steps.version_format.outputs.version_format }}
- name: Create & Push Tag - name: Create & Push Tag
if: github.ref_name == 'master' || github.ref_name == 'dev'
run: | run: |
git tag ${{ steps.git_version.outputs.version }} git tag ${{ steps.git_version.outputs.version }}
git push origin ${{ steps.git_version.outputs.version }} git push origin ${{ steps.git_version.outputs.version }}
- name: Sync tag to dev branch
if: github.ref == 'master'
run: |
git fetch origin dev
git checkout dev
git merge --no-ff ${{ steps.git_version.outputs.version }}
git push origin dev
git checkout master
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v5
with: with: