Skip to content

Commit

Permalink
ci: Split main job into build + deploy jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne committed May 28, 2024
1 parent 97a7e17 commit d121fa5
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit d121fa5

Please sign in to comment.