Skip to content

Commit 114fa01

Browse files
committed
Fix release
1 parent 432a699 commit 114fa01

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
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

dotnet/BuildAndTest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Runs the tests and collects coverage results
2-
dotnet build -f net5.0
2+
dotnet build -f net6.0
33
if ($LASTEXITCODE -lt 0) {
44
exit $LASTEXITCODE
55
}

0 commit comments

Comments
 (0)