Skip to content

Commit

Permalink
Try to get nupkg mess working properly despite MS efforts
Browse files Browse the repository at this point in the history
  • Loading branch information
jas88 committed Mar 2, 2021
1 parent 31c143f commit beb31b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ jobs:
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack and push
if: contains(github.ref,'refs/tags/')
run: |
version=$(fgrep AssemblyInformationalVersion SharedAssemblyInfo.cs |cut -d'"' -f2) dotnet pack -c Release --include-source --include-symbols -o dist
nuget push -skipDuplicate dist/*.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_KEY }}
2 changes: 1 addition & 1 deletion DicomTypeTranslation/HIC.DicomTypeTranslation.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>HIC.DicomTypeTranslation</id>
<version>$version$</version>
<version>VERSION</version>
<title>HIC.DicomTypeTranslation</title>
<authors>Health Informatics Centre - University of Dundee</authors>
<owners>Health Informatics Centre - University of Dundee</owners>
Expand Down

0 comments on commit beb31b9

Please sign in to comment.