Skip to content

Commit afd80a8

Browse files
committed
Fix release
1 parent 432a699 commit afd80a8

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release-dotnet.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ jobs:
2929
with:
3030
workflow: "build-libs.yml"
3131
path: ./libs
32-
- name: Setup MSBuild.exe
33-
uses: microsoft/[email protected]
32+
- uses: actions/setup-dotnet@v1
33+
with:
34+
dotnet-version: '6.0.x'
3435
- name: Generate Package Version
3536
run: |
3637
$json = Invoke-WebRequest 'https://api.github.com/repos/trinsic-id/okapi/releases/latest' `
@@ -43,8 +44,9 @@ jobs:
4344

4445
- name: Create Nuget package
4546
run: |
46-
python ../devops/build_sdks.py --github-token=${{ secrets.API_GITHUB_TOKEN }} --package-version=${{ github.event.inputs.packageVersion }}
47-
msbuild -target:restore,pack -property:SkipNativeLibsCopy=true -property:Configuration=Release -property:PackageVersion=$env:PACKAGE_VERSION
47+
dotnet restore
48+
dotnet build -c Release
49+
dotnet pack -p:SkipNativeLibsCopy=true -p:Configuration=Release -p:PackageVersion=$env:PACKAGE_VERSION
4850
shell: pwsh
4951
working-directory: ./dotnet/Library/Okapi
5052

0 commit comments

Comments
 (0)