-
Notifications
You must be signed in to change notification settings - Fork 175
76 lines (62 loc) · 2.01 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: .NET Build and Publish
on:
push:
branches: ["main", "dev", "dui3/alpha", "dui3/ci/*"]
tags: ["3.*"]
jobs:
build-and-publish:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x
- name: NuGet Cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: "5.x"
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Determine Version
id: version
uses: gittools/actions/gitversion/[email protected]
- name: 🗄️ Format
run: ./build.ps1 format
- name: ♻️ Restore
run: ./build.ps1 restore
- name: ⚒️ Build
run: ./build.ps1 build
env:
VERSION: ${{ env.fullSemVer }}
FILE_VERSION: ${{ env.assemblySemFileVer }}
- name: 📦 Pack
run: ./build.ps1 zip
- name: ⬆️ Upload artifacts
uses: actions/upload-artifact@v4
with:
name: output-${{ env.fullSemVer }}
path: output/*.*
compression-level: 0 # no compression
- name: 🔫 Trigger Build Installers
uses: ALEEF02/[email protected]
with:
workflow: Build Installers
repo: specklesystems/connector-installers
token: ${{ secrets.CONNECTORS_GH_TOKEN }}
inputs: '{ "run_id": "${{ github.run_id }}", "version": "${{ env.fullSemVer }}" }'
ref: main
wait-for-completion: true
wait-for-completion-interval: 5s
wait-for-completion-timeout: 2m
display-workflow-run-url: true
display-workflow-run-url-interval: 10s
workflow-logs: true