Skip to content

Commit 51a9908

Browse files
committed
Add EditorConfig, CI workflow, and project files
- Introduced .editorconfig for consistent coding styles. - Added GitHub Actions workflow for automated .NET builds. - Created .gitattributes and updated .gitignore for better file handling. - Set up Directory.build.props to manage project properties. - Included license file and logo assets in the project. - Refactored several classes into enums for clarity and maintainability.
1 parent ed63a25 commit 51a9908

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3328
-61
lines changed

.editorconfig

Lines changed: 481 additions & 0 deletions
Large diffs are not rendered by default.

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Set the default behavior, in case people don't have core.autocrlf set.
2+
* text=auto
3+
4+
# Explicitly declare text files you want to always be normalized and converted
5+
# to native line endings on checkout.
6+
*.cs text
7+
8+
# Declare files that will always have CRLF line endings on checkout.
9+
*.sln text eol=crlf

.github/workflows/nuget.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: .NET
5+
6+
on:
7+
push:
8+
tags:
9+
- 'v**'
10+
11+
jobs:
12+
build:
13+
14+
runs-on: macos-14
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: actions/setup-dotnet@v3
19+
with:
20+
dotnet-version: '8.x'
21+
22+
- uses: maxim-lobanov/setup-xcode@v1
23+
with:
24+
xcode-version: latest-stable
25+
26+
- name: Install MAUI Workloads
27+
run: dotnet workload install maui --ignore-failed-sources
28+
29+
- name: Semver Parse
30+
id: version
31+
uses: release-kit/semver@v1.0.10
32+
33+
- name: Build MauiKeyboardEffects
34+
run: dotnet build MauiKeyboardEffects/MauiKeyboardEffects.csproj
35+
- name: Create the package
36+
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 }} MauiKeyboardEffects/MauiKeyboardEffects.csproj
37+
- name: Publish the package to NuGet
38+
run: dotnet nuget push MauiKeyboardEffects/bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
39+
env:
40+
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}

0 commit comments

Comments
 (0)