Skip to content

Commit df3f4b5

Browse files
Adds abstractions to release artifacts. Closes #613 (#620)
* Adds abstractions to release artifacts * Updates abstractions folder path * Updates abstractions zip path * Updates building abstractions * Updates abstractions artifact name * Updates build * Renames abstractions artifact --------- Co-authored-by: Garry Trinder <garry@trinder365.co.uk>
1 parent 7de1226 commit df3f4b5

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/create-release.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
- win-x86
1515
- linux-x64
1616
- osx-x64
17-
- osx-arm64
1817
env:
1918
release: 'dev-proxy-${{ matrix.architecture }}-${{ github.ref_name }}'
2019
steps:
@@ -27,6 +26,9 @@ jobs:
2726
run: dotnet publish ./dev-proxy/dev-proxy.csproj -c Release -p:PublishSingleFile=true -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }}
2827
- name: Build plugins
2928
run: dotnet build ./dev-proxy-plugins/dev-proxy-plugins.csproj -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -c Release -r ${{ matrix.architecture }} --no-self-contained
29+
- name: Build abstractions
30+
if: matrix.architecture == 'win-x64'
31+
run: dotnet build ./dev-proxy-abstractions/dev-proxy-abstractions.csproj -p:InformationalVersion=$("${{ github.ref_name }}".Substring(1)) -c Release --no-self-contained
3032
- name: Add plugins to output
3133
run: cp ./dev-proxy/bin/Release/net8.0/${{ matrix.architecture }}/plugins ./${{ env.release }} -r
3234
- name: Remove unnecessary files
@@ -37,15 +39,29 @@ jobs:
3739
Get-ChildItem -Filter *.deps.json -Recurse | Remove-Item
3840
Get-ChildItem -Filter *.runtimeconfig.json -Recurse | Remove-Item
3941
popd
40-
- name: Archive Release ${{ env.release }}
42+
- name: Archive release ${{ env.release }}
4143
uses: thedoctor0/zip-release@master
4244
with:
4345
filename: '../${{ env.release }}.zip'
4446
directory: './${{ env.release }}'
45-
- uses: actions/upload-artifact@v4
47+
- name: Upload release
48+
uses: actions/upload-artifact@v4
4649
with:
4750
name: binaries-${{ env.release }}
4851
path: ./${{ env.release }}.zip
52+
- name: Archive abstractions
53+
if: matrix.architecture == 'win-x64'
54+
uses: thedoctor0/zip-release@master
55+
with:
56+
filename: '../../../../dev-proxy-abstractions-${{ github.ref_name }}.zip'
57+
directory: './dev-proxy-abstractions/bin/Release/net8.0'
58+
exclusions: '*.json'
59+
- name: Upload abstractions
60+
if: matrix.architecture == 'win-x64'
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: binaries-dev-proxy-abstractions-${{ github.ref_name }}
64+
path: ./dev-proxy-abstractions-${{ github.ref_name }}.zip
4965
create_release:
5066
name: Create Release
5167
needs: [publish_binaries]

0 commit comments

Comments
 (0)