Skip to content

Commit

Permalink
feat: Add GitVersion to sketchup CI run
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanRynne authored Aug 13, 2024
1 parent 1694786 commit a2688a7
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build_installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,37 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

# TODO: Generate version!!!!!
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '6.x'
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]

- name: Set connector version
run: |
python patch_version.py 3.0.0-alpha
python patch_version.py ${{steps.gitversion.outputs.semVer}}
- uses: montudor/action-zip@v1
with:
args: zip -q -r sketchup.zip vendor speckle_connector_3/ speckle_connector_3.rb
- name: ⬆️ Upload artifacts
uses: actions/upload-artifact@v4
with:
name: output-3.0.0-alpha
name: output-${{steps.gitversion.outputs.semVer}}
path: sketchup.zip
compression-level: 0 # no compression
- id: set-version
name: Set version to output
run: echo "version=3.0.0-alpha" >> "$GITHUB_OUTPUT" # version will be retrieved from tag?
run: echo "version=${{steps.gitversion.outputs.semVer}}" >> "$GITHUB_OUTPUT" # version will be retrieved from tag?


deploy-installers:
Expand Down
11 changes: 11 additions & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
next-version: 3.0.0
mode: ContinuousDeployment
assembly-informational-format: "{Major}.{Minor}.{Patch}-{PreReleaseTag}"
branches:
main:
regex: ^main$
tag: rc
development:
tag: dev
pull-request:
tag: pr

0 comments on commit a2688a7

Please sign in to comment.