Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Jun 14, 2024
2 parents 4e65f26 + fdef75f commit 7b88db6
Show file tree
Hide file tree
Showing 155 changed files with 2,844 additions and 2,602 deletions.
65 changes: 49 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,29 @@ on:
- dev
- preview
- v*

env:
NugetApiKey: ${{secrets.NUGETAPIKEY}}
TwitterConsumerKey: ${{secrets.TWITTER_CONSUMER_KEY}}
TwitterConsumerSecret: ${{secrets.TWITTER_CONSUMER_SECRET}}
TwitterAccessToken: ${{secrets.TWITTER_ACCESS_TOKEN}}
TwitterAccessTokenSecret: ${{secrets.TWITTER_ACCESS_TOKEN_SECRET}}
DiscordToken: ${{secrets.DISCORD_TOKEN}}
DiscordGuildId: '679761126598115336'
DiscordChannelId: '803717285986566174'
MastodonClientId: ${{secrets.MASTODON_CLIENT_ID}}
MastodonClientSecret: ${{secrets.MASTODON_CLIENT_SECRET}}
MastodonInstance: 'dotnet.social'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:

runs-on: windows-latest
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

# - uses: maxim-lobanov/setup-xcode@v1
# with:
# xcode-version: '15.2'

- name: Set up Xcode version
run: sudo xcode-select -s /Applications/Xcode_15.2.app/Contents/Developer

- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
Expand All @@ -50,14 +48,49 @@ jobs:
architecture: x64

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

- name: Setup Nerdbank GitVersioning
uses: dotnet/nbgv@master
id: nbgv

- name: Build
run: dotnet run --project build/ShinyBuild.csproj
run: dotnet build Build.slnf /restore -m -property:Configuration=Release -property:PublicRelease=true

- name: Post NuGet Artifacts
uses: actions/upload-artifact@v2
with:
name: nuget-artifacts
path: '**/*.nupkg'

- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: nugets
path: ${{ github.workspace }}/artifacts
retention-days: 5

- name: Publish NuGets
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 ${{ secrets.NUGETAPIKEY }} --skip-duplicate

- name: Test Release Annoucement
run: echo "Shiny ${{ steps.nbgv.outputs.NuGetPackageVersion }} released! Check out the latest info at https://shinylib.net/release-notes/client/"

- name: 'Announce to X/Twitter'
uses: nearform-actions/github-action-notify-twitter@master
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }}
with:
message: Shiny ${{ steps.nbgv.outputs.NuGetPackageVersion }} released! Check out the latest info at https://shinylib.net/release-notes/client/
twitter-app-key: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
twitter-app-secret: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
twitter-access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
twitter-access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

- name: Announce to Mastodon
uses: cbrgm/mastodon-github-action@v2
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/heads/v') }}
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
url: ${{ secrets.MASTODON_URL }}
message: "Shiny ${{ steps.nbgv.outputs.NuGetPackageVersion }} released! Check out the latest info at https://shinylib.net/release-notes/client/"
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

.DS_Store
.vscode/
.mfractor/
.build/
build/
deps/
xcuserdata/

# User-specific files
*.suo
Expand Down
3 changes: 0 additions & 3 deletions .vscode/settings.json

This file was deleted.

159 changes: 15 additions & 144 deletions Shiny.sln

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions Shiny.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<Solution>
<Configurations>
<BuildType Name="Debug" />
<BuildType Name="Release" />
</Configurations>
<Folder Name="/Solution Items/">
<File Path=".editorconfig" />
<File Path="Build.slnf" />
<File Path=".github\workflows\build.yml" />
<File Path="LICENSE.md" />
<File Path="readme.md" />
<File Path="nuget.config" />
</Folder>
<Folder Name="/samples/">
<File Path="samples\readme.md" />
<File Path="samples\Directory.build.props" />
<Project Path="samples\Sample.Api\Sample.Api.csproj" />
<Project Path="samples\Sample.Blazor\Sample.Blazor.csproj" />
<Project Path="samples\Sample.Maui\Sample.Maui.csproj" />
<Project Path="tests\Shiny.SourceGenerators.Tests\Shiny.SourceGenerators.Tests.csproj" />
<Project Path="tests\Shiny.Tests\Shiny.Tests.csproj" />
</Folder>
<Folder Name="/libs/">
<File Path="src\Directory.build.props" />
<File Path="src\Directory.build.targets" />
<File Path="src\nuget.png" />
<File Path="src\nuget.txt" />
<File Path="version.json" />
<Project Path="src\Shiny.Beacons\Shiny.Beacons.csproj" />
<Project Path="src\Shiny.BluetoothLE.Common\Shiny.BluetoothLE.Common.csproj" />
<Project Path="src\Shiny.BluetoothLE.Hosting\Shiny.BluetoothLE.Hosting.csproj" />
<Project Path="src\Shiny.BluetoothLE\Shiny.BluetoothLE.csproj" />
<Project Path="src\Shiny.Core\Shiny.Core.csproj" />
<Project Path="src\Shiny.Extensions.Configuration\Shiny.Extensions.Configuration.csproj" />
<Project Path="src\Shiny.Hosting.Maui\Shiny.Hosting.Maui.csproj" />
<Project Path="src\Shiny.Hosting.Native\Shiny.Hosting.Native.csproj" />
<Project Path="src\Shiny.Jobs\Shiny.Jobs.csproj" />
<Project Path="src\Shiny.Locations\Shiny.Locations.csproj" />
<Project Path="src\Shiny.Logging.Sqlite\Shiny.Logging.Sqlite.csproj />
<Project Path="src\Shiny.Net.Http\Shiny.Net.Http.csproj" />
<Project Path="src\Shiny.Notifications\Shiny.Notifications.csproj" />
<Project Path="src\Shiny.Push.AzureNotificationHubs\Shiny.Push.AzureNotificationHubs.csproj" />
<Project Path="src\Shiny.Push.FirebaseMessaging\Shiny.Push.FirebaseMessaging.csproj" />
<Project Path="src\Shiny.Push\Shiny.Push.csproj" />
<Project Path="src\Shiny.SourceGenerators\Shiny.SourceGenerators.csproj" />
<Project Path="src\Shiny.Support.DeviceMonitoring\Shiny.Support.DeviceMonitoring.csproj" />
<Project Path="src\Shiny.Support.Locations\Shiny.Support.Locations.csproj" />
<Project Path="src\Shiny.Support.Repositories\Shiny.Support.Repositories.csproj" />
</Folder>
<Folder Name="/build/">
<File Path="Build.slnf" />
<File Path=".github\workflows\build.yml" />
</Folder>
<Folder Name="/.github/workflows/">
<File Path=".github\workflows\build.yml" />
</Folder>
<Folder Name="/.github/issue templates/">
<File Path=".github\ISSUE_TEMPLATE\bug_report.yml" />
<File Path=".github\ISSUE_TEMPLATE\config.yml" />
<File Path=".github\ISSUE_TEMPLATE\feature_request.yml" />
</Folder>
<Folder Name="/.github/">
<File Path=".github\CODE_OF_CONDUCT.md" />
<File Path=".github\CONTRIBUTING.md" />
<File Path=".github\dependabot.yml" />
<File Path=".github\FUNDING.yml" />
<File Path=".github\PULL_REQUEST_TEMPLATE.md" />
</Folder>
</Solution>
2 changes: 0 additions & 2 deletions build.ps1

This file was deleted.

1 change: 0 additions & 1 deletion build.sh

This file was deleted.

86 changes: 0 additions & 86 deletions build/BuildContext.cs

This file was deleted.

6 changes: 0 additions & 6 deletions build/Constants.cs

This file was deleted.

16 changes: 0 additions & 16 deletions build/Extensions.cs

This file was deleted.

15 changes: 0 additions & 15 deletions build/Program.cs

This file was deleted.

8 changes: 0 additions & 8 deletions build/Properties/launchSettings.json

This file was deleted.

22 changes: 0 additions & 22 deletions build/ShinyBuild.csproj

This file was deleted.

12 changes: 0 additions & 12 deletions build/Tasks/DefaultTask.cs

This file was deleted.

Loading

0 comments on commit 7b88db6

Please sign in to comment.