Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Mar 18, 2024
1 parent 35c135e commit 0231e15
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,14 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.400'
dotnet-version: '8.0.201'

- name: Add .NET 6 Workloads
run: dotnet workload install maui ios android maccatalyst

- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Add .NET Workloads
run: dotnet workload install maui

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

- name: Publish to Nuget
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }}
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ env.NugetApiKey }}

#- name: Create Release
# id: create_release
# if: ${{ github.ref == 'refs/heads/master' }}
# uses: actions/create-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# body: Release
# draft: false
# prerelease: false
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ env.NugetApiKey }}

0 comments on commit 0231e15

Please sign in to comment.