From cfb77eec468e6b788aa3e8183f789cee81fd7b82 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Fri, 5 Jul 2024 15:45:44 +0100 Subject: [PATCH] enable build triggers (#6) * enable build triggers * remove accidental codecov usage * this is not a branch name --- .github/workflows/ci.yml | 2 +- .github/workflows/main.yml | 36 ++++++++++++++++++------------------ GitVersion.yml | 11 +++++++++++ 3 files changed, 30 insertions(+), 19 deletions(-) create mode 100644 GitVersion.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a2364e8d..9978a348d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,7 +50,7 @@ jobs: - id: set-version name: Set version to output - run: echo "version=${{ env.GitVersion_FullSemVer }}" >> "$GITHUB_OUTPUT" + run: echo "version=${{ env.GitVersion_FullSemVer }}" >> "$Env:GITHUB_OUTPUT" test: runs-on: ubuntu-latest steps: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c781e59f5..ab7470f8b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,21 +12,21 @@ jobs: uses: ./.github/workflows/ci.yml secrets: codecov_token: ${{ secrets.CODECOV_TOKEN }} - -# 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": "${{ needs.build.outputs.version }}" }' -# ref: main -# wait-for-completion: true -# wait-for-completion-interval: 10s -# wait-for-completion-timeout: 10m -# display-workflow-run-url: true -# display-workflow-run-url-interval: 10s + + 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": "${{ needs.build.outputs.version }}" }' + ref: main + wait-for-completion: true + wait-for-completion-interval: 10s + wait-for-completion-timeout: 10m + display-workflow-run-url: true + display-workflow-run-url-interval: 10s diff --git a/GitVersion.yml b/GitVersion.yml new file mode 100644 index 000000000..ac7a1732c --- /dev/null +++ b/GitVersion.yml @@ -0,0 +1,11 @@ +next-version: 3.0.0 +mode: ContinuousDelivery +assembly-informational-format: "{Major}.{Minor}.{Patch}-{PreReleaseTag}" +branches: + main: + regex: ^main$ + tag: rc + develop: + tag: beta + pull-request: + tag: pr