Fix path in copy files and copy env to restore nuget step

This commit is contained in:
jklingen 2025-04-18 11:05:53 +02:00 committed by GitHub
commit d7312d4d52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,8 +31,20 @@ jobs:
dotnet-version: '7.x' dotnet-version: '7.x'
- name: Restore NuGet packages - name: Restore NuGet packages
run: | run: msbuild src/Greenshot.sln /p:Configuration=Release /restore /t:PrepareForBuild
msbuild src/Greenshot.sln /p:Configuration=Release /restore /t:PrepareForBuild env:
Box13_ClientId: ${{ secrets.Box13_ClientId }}
Box13_ClientSecret: ${{ secrets.Box13_ClientSecret }}
DropBox13_ClientId: ${{ secrets.DropBox13_ClientId }}
DropBox13_ClientSecret: ${{ secrets.DropBox13_ClientSecret }}
Flickr_ClientId: ${{ secrets.Flickr_ClientId }}
Flickr_ClientSecret: ${{ secrets.Flickr_ClientSecret }}
Imgur13_ClientId: ${{ secrets.Imgur13_ClientId }}
Imgur13_ClientSecret: ${{ secrets.Imgur13_ClientSecret }}
Photobucket_ClientId: ${{ secrets.Photobucket_ClientId }}
Photobucket_ClientSecret: ${{ secrets.Photobucket_ClientSecret }}
Picasa_ClientId: ${{ secrets.Picasa_ClientId }}
Picasa_ClientSecret: ${{ secrets.Picasa_ClientSecret }}
- name: Build and package - name: Build and package
run: msbuild src/Greenshot.sln /p:Configuration=Release /t:Rebuild /v:normal run: msbuild src/Greenshot.sln /p:Configuration=Release /t:Rebuild /v:normal
@ -53,7 +65,7 @@ jobs:
- name: Copy Files - name: Copy Files
run: | run: |
mkdir -p ${{ github.workspace }}/artifacts mkdir -p ${{ github.workspace }}/artifacts
cp $(Build.SourcesDirectory)/installer/Greenshot-INSTALLER-*.exe ${{ github.workspace }}/artifacts/ cp installer/Greenshot-INSTALLER-*.exe ${{ github.workspace }}/artifacts/
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4