Skip to content

Commit 7a7f9bc

Browse files
authored
ci: build and copy plugins project separately (#135)
refactors plugins project to use ProjectDir token to allow the project to be build separately using cli tools. add steps to the release pipeline to ensure that plugins are included in the release packages
1 parent 6f2c980 commit 7a7f9bc

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/create-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ jobs:
2323
with:
2424
dotnet-version: 6.0.x
2525
- name: Publish ${{ matrix.architecture }}
26-
run: dotnet publish ./msgraph-developer-proxy/msgraph-developer-proxy.csproj -c Release -p:PublishSingleFile=true -r ${{ matrix.architecture }} -o ./${{ env.release }}
26+
run: dotnet publish ./msgraph-developer-proxy/msgraph-developer-proxy.csproj -c Release -p:PublishSingleFile=true -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
27+
- name: Build plugins
28+
run: dotnet build ./msgraph-developer-proxy-plugins/msgraph-developer-proxy-plugins.csproj -c Release -r ${{ matrix.architecture }} --no-self-contained
29+
- name: Add plugins to output
30+
run: cp ./msgraph-developer-proxy/bin/Release/net6.0/${{ matrix.architecture }}/GraphProxyPlugins ./${{ env.release }}
2731
- name: Archive Release ${{ env.release }}
2832
uses: thedoctor0/zip-release@master
2933
with:

msgraph-developer-proxy-plugins/msgraph-developer-proxy-plugins.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
the build starts, which may miss files created during the build. -->
3636
<MySourceFiles Include="$(OutDir)\**\*.*" />
3737
</ItemGroup>
38-
<Copy SourceFiles="@(MySourceFiles)" DestinationFiles="$(SolutionDir)msgraph-developer-proxy\$(OutDir)\GraphProxyPlugins\%(RecursiveDir)%(Filename)%(Extension)" />
38+
<Copy SourceFiles="@(MySourceFiles)" DestinationFiles="$(ProjectDir)..\msgraph-developer-proxy\$(OutDir)\GraphProxyPlugins\%(RecursiveDir)%(Filename)%(Extension)" />
3939
</Target>
4040

4141
</Project>

0 commit comments

Comments
 (0)