File tree Expand file tree Collapse file tree 1 file changed +35
-16
lines changed Expand file tree Collapse file tree 1 file changed +35
-16
lines changed Original file line number Diff line number Diff line change 1- # This workflow will build a .NET project
2- # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3-
4- name : .NET
1+ name : .NET Build
52
63on :
74 push :
118
129jobs :
1310 build :
14-
1511 runs-on : ubuntu-latest
1612
1713 steps :
18- - uses : actions/checkout@v3
19- - name : Setup .NET
20- uses : actions/setup-dotnet@v3
21- with :
22- dotnet-version : 8.0.x
23- - name : Restore dependencies
24- run : dotnet restore
25- - name : Build
26- run : dotnet build --no-restore
27- - name : Test
28- run : dotnet test --no-build --verbosity normal
14+ # Checkout for the current repo (plugin) into subfolder ./SurfTimer.Plugin
15+ - name : Checkout Plugin repo into subfolder
16+ uses : actions/checkout@v5
17+ with :
18+ path : SurfTimer.Plugin
19+
20+ # Checkout for SurfTimer.Shared as a "sibling" folder (NOT a submodule)
21+ - name : Checkout Shared repo (sibling folder)
22+ uses : actions/checkout@v5
23+ with :
24+ repository : tslashd/SurfTimer.Shared
25+ path : SurfTimer.Shared
26+ # If private, add PAT:
27+ # token: ${{ secrets.SHARED_REPO_PAT }}
28+
29+ - name : Setup .NET
30+ uses : actions/setup-dotnet@v5
31+ with :
32+ dotnet-version : 8.0.x
33+
34+ - name : Restore
35+ run : dotnet restore SurfTimer.Plugin/src/SurfTimer.Plugin.csproj
36+
37+ - name : Build
38+ run : dotnet build SurfTimer.Plugin/src/SurfTimer.Plugin.csproj -c Release --no-restore
39+
40+ - name : Publish
41+ run : dotnet publish SurfTimer.Plugin/src/SurfTimer.Plugin.csproj -c Release -o out --no-restore
42+
43+ - name : Upload artifact
44+ uses : actions/upload-artifact@v4
45+ with :
46+ name : SurfTimer.Plugin
47+ path : out
You can’t perform that action at this time.
0 commit comments