Skip to content

Commit

Permalink
Merge pull request #1 from TheEightBot/feature/drawer-buildout
Browse files Browse the repository at this point in the history
setup of maui drawer
  • Loading branch information
michaelstonis authored Dec 12, 2023
2 parents cb15000 + 66c574e commit 231f194
Show file tree
Hide file tree
Showing 26 changed files with 1,339 additions and 537 deletions.
478 changes: 478 additions & 0 deletions .editorconfig

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto

# Explicitly declare text files you want to always be normalized and converted
# to native line endings on checkout.
*.cs text

# Declare files that will always have CRLF line endings on checkout.
*.sln text eol=crlf
41 changes: 41 additions & 0 deletions .github/workflows/nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
push:
tags:
- "v**"

jobs:
build:
runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.x"
source-url: https://nuget.pkg.github.com/theeightbot/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install MAUI Workloads
run: dotnet workload install maui --ignore-failed-sources

- name: Semver Parse
id: version
uses: release-kit/[email protected]

- name: Build
run: dotnet build MauiDrawer/MauiDrawer.csproj

- name: Create the package
run: dotnet pack --configuration Release /p:AssemblyVersion=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} /p:Version=${{ steps.version.outputs.major }}.${{ steps.version.outputs.minor }}.${{ steps.version.outputs.patch }} MauiDrawer/MauiDrawer.csproj

- name: Publish the package to GPR
run: dotnet nuget push MauiDrawer/bin/Release/*.nupkg

- name: Publish the package to NuGet
run: dotnet nuget push MauiDrawer/bin/Release/*.nupkg --api-key "${{ secrets.EIGHTBOT_NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
Loading

0 comments on commit 231f194

Please sign in to comment.