Skip to content

Commit 0231e15

Browse files
committed
Update build.yml
1 parent 35c135e commit 0231e15

File tree

1 file changed

+5
-21
lines changed

1 file changed

+5
-21
lines changed

.github/workflows/build.yml

+5-21
Original file line numberDiff line numberDiff line change
@@ -33,30 +33,14 @@ jobs:
3333
- name: Setup .NET Core
3434
uses: actions/setup-dotnet@v1
3535
with:
36-
dotnet-version: '6.0.400'
36+
dotnet-version: '8.0.201'
3737

38-
- name: Add .NET 6 Workloads
39-
run: dotnet workload install maui ios android maccatalyst
40-
41-
- name: Add msbuild to PATH
42-
uses: microsoft/[email protected]
38+
- name: Add .NET Workloads
39+
run: dotnet workload install maui
4340

4441
- name: Build
45-
run: msbuild Build.slnf /restore /p:Configuration=Release /p:PublicRelease=true
42+
run: dotnet build Build.slnf /restore -m -property:Configuration=Release -property:PublicRelease=true
4643

4744
- name: Publish to Nuget
4845
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }}
49-
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ env.NugetApiKey }}
50-
51-
#- name: Create Release
52-
# id: create_release
53-
# if: ${{ github.ref == 'refs/heads/master' }}
54-
# uses: actions/create-release@v1
55-
# env:
56-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
57-
# with:
58-
# tag_name: ${{ github.ref }}
59-
# release_name: Release ${{ github.ref }}
60-
# body: Release
61-
# draft: false
62-
# prerelease: false
46+
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ env.NugetApiKey }}

0 commit comments

Comments
 (0)