Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
paulvarache committed Jan 16, 2024
1 parent 5611b67 commit 7062b8e
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/nuget-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# this is based on https://github.com/irongut/MauiBeach/blob/master/.github/workflows/ci-build.yml
# this might be useful, too:
# https://github.com/dotnet/maui-samples/blob/main/8.0/Apps/WeatherTwentyOne/devops/GitHubActions/

name: Nuget push

on:
push:
tags:
- "*"
workflow_dispatch:

permissions:
contents: read

env:
DOTNET_NOLOGO: true # Disable the .NET logo
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry

jobs:
# Check if it even builds
sanity-check-build:
runs-on: macos-13
name: Build
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Select Xcode 15.1
run: sudo xcode-select -s /Applications/Xcode_15.1.app

- name: Setup .NET according to global.json
uses: actions/setup-dotnet@4d6c8fcf3c8f7a60068d26b594648e99df24cee3
with:
global-json-file: global.json

- name: Install MAUI Workload
run: dotnet workload install maui

- name: Build package
run: dotnet pack -c Release src/The49.Maui.BottomSheet.csproj

- name: Publish
run: nuget src/bin/Debug/The49.Maui.BottomSheet.*.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
4 changes: 2 additions & 2 deletions src/The49.Maui.BottomSheet.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>

<RootNamespace>The49.Maui.BottomSheet</RootNamespace>
Expand All @@ -13,7 +13,7 @@
<!-- Do not warn about Microsoft.Maui.Controls and Microsoft.Maui.Controls.Compatibility anymore -->
<SkipValidateMauiImplicitPackageReferences>true</SkipValidateMauiImplicitPackageReferences>

<VersionPrefix>8.0.1</VersionPrefix>
<VersionPrefix>8.0.2</VersionPrefix>
<VersionSuffix></VersionSuffix>

<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
Expand Down

0 comments on commit 7062b8e

Please sign in to comment.