mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 22:13:23 -07:00
Debugging....
This commit is contained in:
parent
8249ff064d
commit
5faadff02c
1 changed files with 20 additions and 8 deletions
24
.github/workflows/release.yml
vendored
24
.github/workflows/release.yml
vendored
|
@ -32,26 +32,38 @@ jobs:
|
|||
with:
|
||||
dotnet-version: '5.0.100'
|
||||
|
||||
- name: Configure NuGet
|
||||
run: nuget sources Add -Name "NuGet.org" -Source "https://api.nuget.org/v3/index.json"
|
||||
- name: Test network connectivity to NuGet.org
|
||||
run: |
|
||||
echo "Testing network connectivity to NuGet.org..."
|
||||
curl -v https://api.nuget.org/v3/index.json
|
||||
|
||||
- name: Verify NuGet sources
|
||||
run: nuget sources list
|
||||
|
||||
- name: Install MSBuild.Community.Tasks
|
||||
run: nuget install MSBuild.Community.Tasks -Version 1.5.0.235 -OutputDirectory packages
|
||||
run: |
|
||||
echo "Installing MSBuild.Community.Tasks..."
|
||||
nuget install MSBuild.Community.Tasks -Version 1.5.0.235 -OutputDirectory packages
|
||||
if ($?) {
|
||||
echo "Installation successful."
|
||||
} else {
|
||||
echo "Installation failed."
|
||||
}
|
||||
|
||||
- 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
|
||||
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
|
||||
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 || exit 1
|
||||
|
||||
- name: Build and package
|
||||
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
|
||||
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 || exit 1
|
||||
|
||||
- name: Copy Files to artifact staging directory
|
||||
run: |
|
||||
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 || exit 1
|
||||
|
||||
- name: Upload Build Artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue