Skip to content

Commit

Permalink
try seperate upload release assests
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubramanianaks committed Aug 12, 2022
1 parent 64d6789 commit 8563f46
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
run: dotnet publish src\EndpointManagerLauncher\endpointmanagerlauncher.csproj -r win-x64 -c Release --no-restore
- name: Copy endpointmanagerlauncher
uses: Azure/powershell@v1
if: ${{ matrix.mode }} == 'win-x64'
with:
inlineScript: |
Copy-Item -Path ${{ github.workspace }}/src/EndpointManagerLauncher/bin/Release/netcoreapp3.1/win-x64/publish/ -Destination ${{ github.workspace }}/src/dsc/bin/Release/netcoreapp3.1/win-x64/publish/EndpointManagerLauncher -Recurse -Exclude **/*.pdb
Expand All @@ -42,9 +43,9 @@ jobs:
- name: Upload Release
uses: actions/upload-artifact@v3
with:
name: lpk-${{ matrix.mode }}-artifact
name: lpk-${{ matrix.mode }}
path: |
**/*
**/src/dsc/bin/Release/**/**/publish/*
!**/*.pdb
!**/*.xml
!**/*.nuspec
Expand Down Expand Up @@ -83,14 +84,32 @@ jobs:
# body_path: CHANGELOG.md
- name: Download All artifacts
uses: actions/download-artifact@v3
- name: Upload All Release Assets
- name: Upload Window Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./*.zip
asset_name: lpk
asset_path: lpk-win
asset_name: lpk-win.zip
asset_content_type: application/zip
- name: Upload Linux Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: lpk-linux
asset_name: lpk-linux.zip
asset_content_type: application/zip
- name: Upload OSX Release Assets
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: lpk-osx
asset_name: lpk-osx.zip
asset_content_type: application/zip


Expand Down

0 comments on commit 8563f46

Please sign in to comment.