From 1257d9dca0f41dff99d676914830a049a1cec42f Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Wed, 6 Apr 2022 23:50:55 +0200 Subject: [PATCH 1/3] do kot creare a new version with every push request --- .github/workflows/release.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd4ec4e..076e9f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,7 @@ name: Create new release on: - push: - branches: - - 'master' + workflow_dispatch: jobs: build: From b28d6ea3f45dee17c76d210482f99949a1d745a7 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Thu, 7 Apr 2022 11:01:15 +0200 Subject: [PATCH 2/3] remove version check from build --- .github/workflows/build_check.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/build_check.yml b/.github/workflows/build_check.yml index 7686833..a5655db 100644 --- a/.github/workflows/build_check.yml +++ b/.github/workflows/build_check.yml @@ -10,20 +10,6 @@ on: - master jobs: - version_check: - name: Version Check - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: Set up Python - uses: actions/setup-python@v2 - - run: pip install GitPython - - name: check version - run: ./scripts/check_version.py - build: name: Compile Firmware runs-on: ubuntu-latest From b31709bf27931b882066e4e34871422765823188 Mon Sep 17 00:00:00 2001 From: Peter Buchegger Date: Thu, 7 Apr 2022 11:01:31 +0200 Subject: [PATCH 3/3] add version check on relaese --- .github/workflows/release.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 076e9f9..71a9939 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,22 @@ on: workflow_dispatch: jobs: - build: + version_check: + name: Version Check + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Set up Python + uses: actions/setup-python@v2 + - run: pip install GitPython + - name: check version + run: ./scripts/check_version.py + + create_release: + needs: version_check name: Create new release runs-on: ubuntu-latest steps: