Learning from RevitLookup for install, GitHub actions, builds, releases, etc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There has been a lot of very nice work by @nice3point @ricaun and others to set up the build/install/release scheme for RevitLookup. Is there any documentation or advice on how to leverage that for other Revit plug-ins?
For example, I have this Github Action that builds Revit 2023/2024 on a windows-2019 runner, and also builds 2025 on an windows-2022 runner (which seems necessary because of the .net version differences) but then the files are on two different machines and can't be put all together for the installation. And then there are questions about how the best way to create the Github releases. Can https://github.com/velopack/velopack be added to automatically detect and install updates?
My sense is that https://github.com/ricaun-io/ricaun.Nuke.PackageBuilder and other packages have already figured all this out and it would be a big help to not have to reinvent the wheel. Thanks for any advice!
name: Build 2023 2024
on: [workflow_dispatch, push]
jobs:
build_2023_2024:
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/[email protected]
- name: setup-msbuild
uses: microsoft/[email protected]
- name: Restore Packages
run: nuget restore MyTestApp.sln
env:
NUGET_RESTORE_MSBUILD_ARGS: /p:Configuration=2023
- name: Build solution
run: msbuild MyTestApp.sln -t:rebuild -property:Configuration=2023
- name: Restore Packages
run: nuget restore MyTestApp.sln
env:
NUGET_RESTORE_MSBUILD_ARGS: /p:Configuration=2024
- name: Build solution
run: msbuild MyTestApp.sln -t:rebuild -property:Configuration=2024
build_2025:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Setup NuGet
uses: NuGet/[email protected]
- name: setup-msbuild
uses: microsoft/[email protected]
- name: Restore Packages
run: nuget restore MyTestApp.sln
env:
NUGET_RESTORE_MSBUILD_ARGS: /p:Configuration=2025
- name: Build solution
run: msbuild MyTestApp.sln -t:rebuild -property:Configuration=2025
advinst-aip-build-demo:
runs-on: windows-latest
name: Build Aip Demo
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Build AIP
uses: caphyon/[email protected]
with:
advinst-version: '21.2.2'
advinst-license: ${{ secrets.ADVINST_LICENSE_KEY }}
advinst-enable-automation: 'true'
aip-path: ${{ github.workspace }}\MyTestApp.aip
aip-build-name: DefaultBuild
aip-package-name: setup.msi
aip-output-dir: ${{ github.workspace }}\setup
aip-commands: |
SetProperty FOO="foo"
SetVersion 1.2.0
- name: Publish setup artifact
uses: actions/upload-artifact@v2
with:
name: setup
path: ${{ github.workspace }}\setup\setup.msi
Developer Advocacy and Support +