diff --git a/.github/workflows/providers/gitea-release.yml b/.github/workflows/providers/gitea-release.yml index 083e412..c7aaafd 100644 --- a/.github/workflows/providers/gitea-release.yml +++ b/.github/workflows/providers/gitea-release.yml @@ -1,9 +1,7 @@ name: Gitea Release on: - push: - tags: - - 'v*' + workflow_call: # This workflow will only be triggered when called by another workflow permissions: contents: write # Required for creating releases diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 352a8cd..ff592f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,12 +6,13 @@ on: - 'v*' jobs: - detect-and-run: + detect: runs-on: ubuntu-latest + outputs: + platform: ${{ steps.platform.outputs.platform }} steps: - - name: Checkout code - uses: actions/checkout@v4 - + - uses: actions/checkout@v4 + - name: Determine hosting platform id: platform run: | @@ -21,10 +22,12 @@ jobs: echo "platform=gitea" >> $GITHUB_OUTPUT fi - - name: Run Release Workflow - run: | - if [[ "${{ steps.platform.outputs.platform }}" == "github" ]]; then - ./.github/workflows/providers/github-release.sh - else - ./.github/workflows/providers/gitea-release.sh - fi \ No newline at end of file + gitea-release: + needs: detect + if: needs.detect.outputs.platform == 'gitea' + uses: ./.github/workflows/providers/gitea-release.yml + + github-release: + needs: detect + if: needs.detect.outputs.platform == 'github' + uses: ./.github/workflows/providers/github-release.yml \ No newline at end of file diff --git a/platformio.ini b/platformio.ini index cc90c3f..07ab443 100644 --- a/platformio.ini +++ b/platformio.ini @@ -9,7 +9,7 @@ ; https://docs.platformio.org/page/projectconf.html [common] -version = "1.2.7" +version = "1.2.8" [env:esp32dev] platform = espressif32