Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matmork committed Dec 17, 2024
1 parent 6ddf280 commit 4e700e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/nuget-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@ env:
jobs:
# Check if it even builds
build-and-publish-nuget-packages:
runs-on: macos-13
runs-on: macos-15
name: Build and publish NuGet packages
steps:
- name: Checkout
uses: actions/checkout@v4

# Use Xcode 15.2 until 15.3 is recommended
# see https://github.com/dotnet/maui/issues/21057
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Select Xcode 16.1
# run: sudo xcode-select -s /Applications/Xcode_16.1.2.app

- name: Setup .NET according to global.json
uses: actions/setup-dotnet@v4
Expand All @@ -46,9 +44,9 @@ jobs:

- name: Build packages
run: |
dotnet pack -o staging -c Release src/Rive.Android/Rive.Android.csproj
dotnet pack -o staging -c Release src/Rive.iOS/Rive.iOS.csproj
dotnet pack -o staging -c Release src/Rive.Maui/Rive.Maui.csproj
dotnet pack -o staging -c Release src/Rive.Android/Rive.Android.csproj /p:Version="${{ github.ref_name }}"
dotnet pack -o staging -c Release src/Rive.iOS/Rive.iOS.csproj /p:Version="${{ github.ref_name }}"
dotnet pack -o staging -c Release src/Rive.Maui/Rive.Maui.csproj /p:Version="${{ github.ref_name }}"
- name: Publish to NuGet
run: dotnet nuget push "staging/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate
2 changes: 1 addition & 1 deletion src/Rive.Android/Rive.Android.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageId>Rive.Android</PackageId>
<Title>Rive Android</Title>
<Description>Wrapper around the Android runtime</Description>
<VersionPrefix>1.0.5</VersionPrefix>
<VersionPrefix>1.1.0-pre1</VersionPrefix>
<PackageProjectUrl>https://github.com/matmork/rive-maui</PackageProjectUrl>
<RepositoryUrl>https://github.com/matmork/rive-maui</RepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
2 changes: 1 addition & 1 deletion src/Rive.Maui/Rive.Maui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageId>Rive.Maui</PackageId>
<Title>Rive Maui</Title>
<Description>Rive animations in Maui using iOS/Android runtimes</Description>
<VersionPrefix>1.0.5</VersionPrefix>
<VersionPrefix>1.1.0-pre1</VersionPrefix>
<PackageProjectUrl>https://github.com/matmork/rive-maui</PackageProjectUrl>
<RepositoryUrl>https://github.com/matmork/rive-maui</RepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
2 changes: 1 addition & 1 deletion src/Rive.iOS/Rive.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>Rive.iOS</PackageId>
<Title>Rive iOS</Title>
<Description>Wrapper around the iOS runtime</Description>
<VersionPrefix>1.0.5</VersionPrefix>
<VersionPrefix>1.1.0-pre1</VersionPrefix>
<PackageProjectUrl>https://github.com/matmork/rive-maui</PackageProjectUrl>
<RepositoryUrl>https://github.com/matmork/rive-maui</RepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down

0 comments on commit 4e700e0

Please sign in to comment.