Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jerbob92 authored May 11, 2020
1 parent 3210df7 commit 1a4a656
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,19 @@ jobs:
nuget-version: '5.x'
- run: nuget restore KlippaOCRAPI.sln

- name: Check if Git tag exists
run: echo "::set-env name=HEAD_TAG::$(git tag --points-at HEAD)"

- name: Build Project
run: |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\"
.\MSBuild.exe $Env:GITHUB_WORKSPACE\KlippaOCRAPI /t:Build /p:Configuration=Release
- name: Build and push NuGet
if: env.HEAD_TAG != ''
run: |
cd $Env:GITHUB_WORKSPACE
nuget pack KlippaOCRAPI.nuspec
nuget pack KlippaOCRAPI.nuspec -Version $Env:HEAD_TAG
nuget push *.nupkg -source https://www.nuget.org/
- uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 1a4a656

Please sign in to comment.