From d121fa5f936eb2cd9b9f33068b2316a8eceb8733 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Tue, 28 May 2024 14:56:05 +0200 Subject: [PATCH] ci: Split main job into build + deploy jobs --- .github/workflows/main.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index febd98c9d0..d614eb71a7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,9 +6,10 @@ on: tags: ["3.*"] jobs: - build-and-publish: + build: runs-on: windows-latest - + outputs: + version: ${{ steps.set-version.outputs.version }} steps: - name: Checkout uses: actions/checkout@v4 @@ -60,13 +61,21 @@ jobs: path: output/*.* compression-level: 0 # no compression + - id: set-version + name: Set version to output + run: echo "version=${{env.fullSemver}}" >> "$GITHUB_OUTPUT" + + deploy-installers: + runs-on: ubuntu-latest + needs: build + steps: - name: 🔫 Trigger Build Installers uses: ALEEF02/workflow-dispatch@v3.0.0 with: workflow: Build Installers repo: specklesystems/connector-installers token: ${{ secrets.CONNECTORS_GH_TOKEN }} - inputs: '{ "run_id": "${{ github.run_id }}", "version": "${{ env.fullSemVer }}" }' + inputs: '{ "run_id": "${{ github.run_id }}", "version": "${{ needs.build.outputs.version }}" }' ref: main wait-for-completion: true wait-for-completion-interval: 10s