fix for #24 - System.lO.FileNotFoundException: #361
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
name: CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Checkout Secret Repo | |
uses: actions/checkout@master | |
with: | |
repository: NeVeSpl/SecretRepository | |
token: ${{ secrets.SR_PAT }} | |
path: ./binaries/revit/2025/ | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@v1.3.1 | |
- name: Setup NuGet | |
uses: NuGet/setup-nuget@v1.2.0 | |
- name: Restore Packages | |
run: nuget restore RevitDBExplorer.sln | |
- name: Build Project for R2021 | |
working-directory: sources/RevitDBExplorer/ | |
run: | | |
msbuild /p:Configuration=R2021 | |
- name: Build Project for R2022 | |
working-directory: sources/RevitDBExplorer/ | |
run: | | |
msbuild /p:Configuration=R2022 | |
- name: Build Project for R2023 | |
working-directory: sources/RevitDBExplorer/ | |
run: | | |
msbuild /p:Configuration=R2023 | |
- name: Build Project for R2024 | |
working-directory: sources/RevitDBExplorer/ | |
run: | | |
msbuild /p:Configuration=R2024 | |
- name: Remove obj folder | |
uses: JesseTG/rm@v1.0.3 | |
with: | |
path: sources/RevitDBExplorer/obj | |
- name: Restore Packages for .net 7.0 | |
run: msbuild /r /p:Configuration=R2025 | |
- name: Build Project for R2025 | |
working-directory: sources/RevitDBExplorer/ | |
run: | | |
msbuild /p:Configuration=R2025 | |
- name: Create Code Signing Certificate | |
run: | | |
New-Item -ItemType directory -Path certificate | |
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.BASE64_ENCODED_PFX }}' | |
certutil -decode certificate\certificate.txt certificate\certificate.pfx | |
#- name: Sign RevitDBExplorer.dll | |
# run: | | |
# & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.PFX_KEY }}' /t http://timestamp.comodoca.com/authenticode sources/bin/Release/RevitDBExplorer.dll | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: Build | |
path: "sources/bin/" | |
- name: Build SetupBuilder.exe | |
working-directory: setup/ | |
run: msbuild /p:Configuration=Release /p:BuildProjectReferences=false | |
- name: Run SetupBuilder.exe | |
working-directory: setup/bin/Release/ | |
run: | | |
./SetupBuilder.exe | |
#- name: Sign *.msi | |
# run: | | |
# & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /f certificate\certificate.pfx /p '${{ secrets.PFX_KEY }}' /t http://timestamp.comodoca.com/authenticode setup/bin/Release/*.msi | |
- name: Upload a Build Artifact | |
uses: actions/upload-artifact@v3.1.0 | |
with: | |
name: Setup | |
path: setup/bin/Release/RevitDBExplorer.msi | |