Skip to content

Commit

Permalink
Merge pull request #118 from OHDSI/packageversion-fix
Browse files Browse the repository at this point in the history
Packageversion fix
  • Loading branch information
bradanton authored Sep 5, 2024
2 parents 0f720c3 + 0bf9d8b commit 9e00212
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Release to NuGet

on:
workflow_dispatch:
inputs:
packageVersion:
required: true
type: string
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -17,6 +22,6 @@ jobs:
- name: Build
run: dotnet build -c Release sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj
- name: Create NuGet Package
run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -p:PackageVersion=${{ github.event.release.tag_name }}
run: dotnet pack -c Release --no-build sources/Framework/org.ohdsi.cdm.framework/org.ohdsi.cdm.framework.csproj -p:PackageVersion=${{ github.event.inputs.packageVersion }}
- name: Push to NuGet
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.LAMBDABUILDER }}

0 comments on commit 9e00212

Please sign in to comment.