From a53b5168fefc40063fd11262c79d2cfb751957fd Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Wed, 15 May 2024 07:54:35 +0200 Subject: [PATCH] fix: fix parallel platform builds --- .github/workflows/platform-builds.yml | 37 +++++++++++++++------------ 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/.github/workflows/platform-builds.yml b/.github/workflows/platform-builds.yml index 76fc95bc..d18a5c8a 100644 --- a/.github/workflows/platform-builds.yml +++ b/.github/workflows/platform-builds.yml @@ -11,7 +11,25 @@ concurrency: cancel-in-progress: false jobs: + semantic-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - id: create_token # get ReleaseBot access token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.RELEASE_BOT_APP_ID }} + private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v4 + id: semantic # Need an `id` for output variables + env: + GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} + with: + semantic_version: 23.0.8 + build: + needs: semantic-release strategy: matrix: build: @@ -31,26 +49,13 @@ jobs: node-version: 20 - run: npm install -g yarn - run: yarn - - id: create_token # get ReleaseBot access token - uses: tibdex/github-app-token@v2 - with: - app_id: ${{ secrets.RELEASE_BOT_APP_ID }} - private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} - - name: Semantic Release - uses: cycjimmy/semantic-release-action@v4 - id: semantic # Need an `id` for output variables - env: - GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} - with: - semantic_version: 23.0.8 - run: yarn build - if: steps.semantic.outputs.new_release_published == 'true' + if: needs.semantic-release.outputs.semantic.outputs.new_release_published == 'true' - run: yarn prepare-release - if: steps.semantic.outputs.new_release_published == 'true' + if: needs.semantic-release.outputs.semantic.outputs.new_release_published == 'true' - run: yarn package ${{ matrix.build.task }} - if: steps.semantic.outputs.new_release_published == 'true' + if: needs.semantic-release.outputs.semantic.outputs.new_release_published == 'true' env: EP_PRE_RELEASE: 'true' GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }} - \ No newline at end of file