77 workflow_dispatch :
88 inputs :
99 version :
10- description : ' Version to publish (e.g., 1.0.11.32 )'
10+ description : ' Version to publish (e.g., 1.0.11.35 )'
1111 required : true
1212 type : string
1313
@@ -38,17 +38,32 @@ jobs:
3838 if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
3939 VERSION="${{ github.event.inputs.version }}"
4040 else
41- # Extract version from tag format: event-pi/1.0.11.32
41+ # Extract version from tag format: event-pi/1.0.11.35
4242 VERSION=${GITHUB_REF#refs/tags/event-pi/}
4343 fi
4444 echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
4545 echo "Publishing version: $VERSION"
4646
47- - name : Restore EventPi.Abstractions dependencies
48- run : dotnet restore src/EventPi.Abstractions/EventPi.Abstractions.csproj
49-
50- - name : Build EventPi.Abstractions
51- run : dotnet build src/EventPi.Abstractions/EventPi.Abstractions.csproj --configuration ${{ env.CONFIGURATION }} --no-restore /p:Version=${{ steps.get_version.outputs.VERSION }}
47+ - name : Restore and build all packages
48+ run : |
49+ # Build in dependency order
50+ dotnet build src/EventPi.Abstractions/EventPi.Abstractions.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
51+ dotnet build src/EventPi.Threading/EventPi.Threading.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
52+ dotnet build src/EventPi.SharedMemory/EventPi.SharedMemory.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
53+ dotnet build src/EventPi.Pid/EventPi.Pid.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
54+ dotnet build src/EventPi.SignalProcessing/EventPi.SignalProcessing.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
55+ dotnet build src/EventPi.Advertiser/EventPi.Advertiser.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
56+ dotnet build src/EventPi.NetworkMonitor/EventPi.NetworkMonitor.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
57+ dotnet build src/EventPi.EventStore/EventPi.EventStore.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
58+ dotnet build src/EventPi.AutoUpdate/EventPi.AutoUpdate.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
59+ dotnet build src/EventPi.Events.MachineWork/EventPi.Events.MachineWork.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
60+ dotnet build src/EventPi.Services.Camera.Contract/EventPi.Services.Camera.Contract.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
61+ dotnet build src/EventPi.Services.Camera/EventPi.Services.Camera.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
62+ dotnet build src/EventPi.Services.MachineWorkTime/EventPi.Services.MachineWorkTime.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
63+ dotnet build src/EventPi.Services.NetworkMonitor.Contract/EventPi.Services.NetworkMonitor.Contract.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
64+ dotnet build src/EventPi.Services.NetworkMonitor/EventPi.Services.NetworkMonitor.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
65+ dotnet build src/EventPi.UI/EventPi.UI.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
66+ dotnet build src/EventPi.SimpleAPIToPWM/EventPi.SimpleAPIToPWM/EventPi.SimpleAPIToPWM.csproj --configuration ${{ env.CONFIGURATION }} /p:Version=${{ steps.get_version.outputs.VERSION }}
5267
5368 - name : Pack EventPi.Abstractions
5469 run : |
@@ -58,11 +73,45 @@ jobs:
5873 --output ./artifacts \
5974 /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
6075
61- - name : Restore EventPi.NetworkMonitor dependencies
62- run : dotnet restore src/EventPi.NetworkMonitor/EventPi.NetworkMonitor.csproj
76+ - name : Pack EventPi.Threading
77+ run : |
78+ dotnet pack src/EventPi.Threading/EventPi.Threading.csproj \
79+ --configuration ${{ env.CONFIGURATION }} \
80+ --no-build \
81+ --output ./artifacts \
82+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
6383
64- - name : Build EventPi.NetworkMonitor
65- run : dotnet build src/EventPi.NetworkMonitor/EventPi.NetworkMonitor.csproj --configuration ${{ env.CONFIGURATION }} --no-restore /p:Version=${{ steps.get_version.outputs.VERSION }}
84+ - name : Pack EventPi.SharedMemory
85+ run : |
86+ dotnet pack src/EventPi.SharedMemory/EventPi.SharedMemory.csproj \
87+ --configuration ${{ env.CONFIGURATION }} \
88+ --no-build \
89+ --output ./artifacts \
90+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
91+
92+ - name : Pack EventPi.Pid
93+ run : |
94+ dotnet pack src/EventPi.Pid/EventPi.Pid.csproj \
95+ --configuration ${{ env.CONFIGURATION }} \
96+ --no-build \
97+ --output ./artifacts \
98+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
99+
100+ - name : Pack EventPi.SignalProcessing
101+ run : |
102+ dotnet pack src/EventPi.SignalProcessing/EventPi.SignalProcessing.csproj \
103+ --configuration ${{ env.CONFIGURATION }} \
104+ --no-build \
105+ --output ./artifacts \
106+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
107+
108+ - name : Pack EventPi.Advertiser
109+ run : |
110+ dotnet pack src/EventPi.Advertiser/EventPi.Advertiser.csproj \
111+ --configuration ${{ env.CONFIGURATION }} \
112+ --no-build \
113+ --output ./artifacts \
114+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
66115
67116 - name : Pack EventPi.NetworkMonitor
68117 run : |
@@ -72,6 +121,86 @@ jobs:
72121 --output ./artifacts \
73122 /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
74123
124+ - name : Pack EventPi.EventStore
125+ run : |
126+ dotnet pack src/EventPi.EventStore/EventPi.EventStore.csproj \
127+ --configuration ${{ env.CONFIGURATION }} \
128+ --no-build \
129+ --output ./artifacts \
130+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
131+
132+ - name : Pack EventPi.AutoUpdate
133+ run : |
134+ dotnet pack src/EventPi.AutoUpdate/EventPi.AutoUpdate.csproj \
135+ --configuration ${{ env.CONFIGURATION }} \
136+ --no-build \
137+ --output ./artifacts \
138+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
139+
140+ - name : Pack EventPi.Events.MachineWork
141+ run : |
142+ dotnet pack src/EventPi.Events.MachineWork/EventPi.Events.MachineWork.csproj \
143+ --configuration ${{ env.CONFIGURATION }} \
144+ --no-build \
145+ --output ./artifacts \
146+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
147+
148+ - name : Pack EventPi.Services.Camera.Contract
149+ run : |
150+ dotnet pack src/EventPi.Services.Camera.Contract/EventPi.Services.Camera.Contract.csproj \
151+ --configuration ${{ env.CONFIGURATION }} \
152+ --no-build \
153+ --output ./artifacts \
154+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
155+
156+ - name : Pack EventPi.Services.Camera
157+ run : |
158+ dotnet pack src/EventPi.Services.Camera/EventPi.Services.Camera.csproj \
159+ --configuration ${{ env.CONFIGURATION }} \
160+ --no-build \
161+ --output ./artifacts \
162+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
163+
164+ - name : Pack EventPi.Services.MachineWorkTime
165+ run : |
166+ dotnet pack src/EventPi.Services.MachineWorkTime/EventPi.Services.MachineWorkTime.csproj \
167+ --configuration ${{ env.CONFIGURATION }} \
168+ --no-build \
169+ --output ./artifacts \
170+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
171+
172+ - name : Pack EventPi.Services.NetworkMonitor.Contract
173+ run : |
174+ dotnet pack src/EventPi.Services.NetworkMonitor.Contract/EventPi.Services.NetworkMonitor.Contract.csproj \
175+ --configuration ${{ env.CONFIGURATION }} \
176+ --no-build \
177+ --output ./artifacts \
178+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
179+
180+ - name : Pack EventPi.Services.NetworkMonitor
181+ run : |
182+ dotnet pack src/EventPi.Services.NetworkMonitor/EventPi.Services.NetworkMonitor.csproj \
183+ --configuration ${{ env.CONFIGURATION }} \
184+ --no-build \
185+ --output ./artifacts \
186+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
187+
188+ - name : Pack EventPi.UI
189+ run : |
190+ dotnet pack src/EventPi.UI/EventPi.UI.csproj \
191+ --configuration ${{ env.CONFIGURATION }} \
192+ --no-build \
193+ --output ./artifacts \
194+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
195+
196+ - name : Pack EventPi.SimpleAPIToPWM
197+ run : |
198+ dotnet pack src/EventPi.SimpleAPIToPWM/EventPi.SimpleAPIToPWM/EventPi.SimpleAPIToPWM.csproj \
199+ --configuration ${{ env.CONFIGURATION }} \
200+ --no-build \
201+ --output ./artifacts \
202+ /p:PackageVersion=${{ steps.get_version.outputs.VERSION }}
203+
75204 - name : List artifacts
76205 run : ls -lh ./artifacts
77206
0 commit comments