From 9e18c4db4eb2444bc6e66ca7da22f97a6e2b3c13 Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Sat, 11 May 2024 21:49:27 +0200 Subject: [PATCH] chore: prevent new builds being uploaded without a release --- .github/workflows/platform-builds.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/platform-builds.yml b/.github/workflows/platform-builds.yml index 5d10d89..88c0280 100644 --- a/.github/workflows/platform-builds.yml +++ b/.github/workflows/platform-builds.yml @@ -36,13 +36,17 @@ jobs: with: app_id: ${{ secrets.RELEASE_BOT_APP_ID }} private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }} - - run: npx semantic-release --ci - name: Semantic Release + - name: Semantic Release + uses: cycjimmy/semantic-release-action@v4 + id: semantic # Need an `id` for output variables env: - GH_TOKEN: ${{ steps.create_token.outputs.token }} + GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} - run: yarn build + if: steps.semantic.outputs.new_release_published == 'true' - run: yarn prepare-release + if: steps.semantic.outputs.new_release_published == 'true' - run: yarn package ${{ matrix.build.task }} + if: steps.semantic.outputs.new_release_published == 'true' env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}