mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 14:24:43 -07:00
Explicitly install Required Assemblies
This commit is contained in:
parent
d93770e964
commit
eb5ce30ffb
1 changed files with 15 additions and 2 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -26,18 +26,30 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Set up .NET
|
- name: Set up .NET
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: '5.0.100'
|
dotnet-version: '5.0.100'
|
||||||
|
|
||||||
|
- name: Install MSBuild.Community.Tasks
|
||||||
|
run: nuget install MSBuild.Community.Tasks -Version 1.5.0.235 -OutputDirectory packages
|
||||||
|
|
||||||
|
- name: Install Microsoft.Build.Utilities.v4.0
|
||||||
|
run: nuget install Microsoft.Build.Utilities.v4.0 -Version 4.0.0 -OutputDirectory packages
|
||||||
|
|
||||||
- name: Restore nuget packages and generate credential templates
|
- name: Restore nuget packages and generate credential templates
|
||||||
run: dotnet msbuild src/Greenshot.sln /restore /t:PrepareForBuild /p:Configuration=Release /p:Platform="Any CPU"
|
run: |
|
||||||
|
dotnet msbuild src/Greenshot.sln /restore /t:PrepareForBuild /p:Configuration=Release /p:Platform="Any CPU" /p:MSBuildExtensionsPath=$(pwd)/packages/MSBuild.Community.Tasks.1.5.0.235/tools
|
||||||
|
|
||||||
- name: Build and package
|
- name: Build and package
|
||||||
run: dotnet msbuild src/Greenshot.sln /p:Configuration=Release /p:Platform="Any CPU"
|
run: dotnet msbuild src/Greenshot.sln /p:Configuration=Release /p:Platform="Any CPU" /p:MSBuildExtensionsPath=$(pwd)/packages/MSBuild.Community.Tasks.1.5.0.235/tools
|
||||||
|
|
||||||
- name: Copy Files to artifact staging directory
|
- name: Copy Files to artifact staging directory
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ${{ github.workspace }}/artifacts
|
mkdir -p ${{ github.workspace }}/artifacts
|
||||||
cp $(Build.SourcesDirectory)/installer/Greenshot-INSTALLER-*.exe ${{ github.workspace }}/artifacts
|
cp $(Build.SourcesDirectory)/installer/Greenshot-INSTALLER-*.exe ${{ github.workspace }}/artifacts
|
||||||
|
|
||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -53,6 +65,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: drop
|
name: drop
|
||||||
path: ${{ github.workspace }}/drop
|
path: ${{ github.workspace }}/drop
|
||||||
|
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue