Feat(dui3): v3 installer build test #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Build installer | |
on: | |
push: | |
branches: ["dui3/alpha"] # Continuous delivery on every long-lived branch | |
tags: ["3.*"] # Manual delivery on every 3.x tag | |
pull_request: | |
branches: [ "dui3/alpha" ] # Run on pull requests targeting the specific branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.set-version.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Set connector version | |
run: | | |
python patch_version.py 3.0.0-fake | |
- uses: montudor/action-zip@v1 | |
with: | |
args: zip -q -r output-3.0.0-fake.zip vendor speckle_connector_3/ speckle_connector_3.rb | |
- name: ⬆️ Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: output-3.0.0-fake | |
path: output-3.0.0-fake.zip | |
compression-level: 0 # no compression | |
- id: set-version | |
name: Set version to output | |
run: echo "version=3.0.0-fake" >> "$GITHUB_OUTPUT" # version will be retrieved from tag? | |
deploy-installers: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: 🔫 Trigger Build Installers | |
uses: ALEEF02/[email protected] | |
with: | |
workflow: Build Sketchup | |
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 | |