Skip to content

Commit

Permalink
Merge pull request #10 from exendahal/fix/change_project_directory
Browse files Browse the repository at this point in the history
Change project directory
  • Loading branch information
exendahal authored Sep 14, 2024
2 parents 6ae6553 + e14fa54 commit bbcdfe5
Show file tree
Hide file tree
Showing 65 changed files with 153 additions and 134 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/package-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Package for CI

on:
push:
branches:
- "main"
- "develop"
paths-ignore:
- "**.md"
pull_request:
branches:
- "main"
- "develop"

env:
BUILD_CONFIGURATION: Release
DOTNET_VERSION: 8.0.x
CSPROJ_TO_BUILD: MAUIWifiManager.csproj
jobs:
build-sample-ci:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

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

- name: Restore dependencies
run: dotnet restore src\MAUIWifiManager\${{ env.CSPROJ_TO_BUILD }}

- name: Build Package ${{ env.CSPROJ_TO_BUILD }}
run: dotnet build src\MAUIWifiManager\${{ env.CSPROJ_TO_BUILD }} -c ${{ env.BUILD_CONFIGURATION }}
36 changes: 36 additions & 0 deletions .github/workflows/release-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Create a (Pre)release on NuGet

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-preview[0-9]+"

jobs:
release-nuget:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

- name: Verify commit exists in origin/main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/main
- name: Get version information from tag
id: get_version
run: |
$version="${{github.ref_name}}".TrimStart("v")
"version-without-v=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Install .NET MAUI Workload
run: dotnet workload install maui

- name: Pack
run: dotnet pack src\MAUIWifiManager\MAUIWifiManager.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }}

- name: Push
run: dotnet nuget push src\MAUIWifiManager\bin\Release\MAUIWifiManager.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}
39 changes: 39 additions & 0 deletions .github/workflows/sample-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Sample for CI

on:
push:
branches:
- "main"
- "develop"
paths-ignore:
- "**.md"
pull_request:
branches:
- "main"
- "develop"

env:
BUILD_CONFIGURATION: Release
DOTNET_VERSION: 8.0.x
CSPROJ_TO_BUILD: DemoApp.csproj
jobs:
build-sample-ci:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Setup .NET ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

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

- name: Restore dependencies
run: dotnet restore samples\${{ env.CSPROJ_TO_BUILD }}

- name: Build Demo App ${{ env.CSPROJ_TO_BUILD }}
run: dotnet build samples\${{ env.CSPROJ_TO_BUILD }} -c ${{ env.BUILD_CONFIGURATION }} -f:net8.0-android
94 changes: 0 additions & 94 deletions DemoApp/DemoApp - Backup.csproj

This file was deleted.

33 changes: 0 additions & 33 deletions MauiWifiManager.sln

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 2 additions & 3 deletions DemoApp/DemoApp.csproj → samples/DemoApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@
<PackageReference Include="Microsoft.Maui.Controls" Version="8.0.90" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="8.0.90" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
<!--<PackageReference Include="WifiManager.Maui" Version="1.0.2" />-->
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\MAUIWifiManager\MauiWifiManager.csproj" />
<ItemGroup>
<ProjectReference Include="..\src\MAUIWifiManager\MauiWifiManager.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
33 changes: 33 additions & 0 deletions samples/DemoApp.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.10.35122.118
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DemoApp", "DemoApp.csproj", "{8F2F33EC-3233-42FF-852C-14D7285F29FC}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MauiWifiManager", "..\src\MAUIWifiManager\MauiWifiManager.csproj", "{FF62D77B-5094-472E-878B-385723BFB4B4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8F2F33EC-3233-42FF-852C-14D7285F29FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F2F33EC-3233-42FF-852C-14D7285F29FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F2F33EC-3233-42FF-852C-14D7285F29FC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{8F2F33EC-3233-42FF-852C-14D7285F29FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F2F33EC-3233-42FF-852C-14D7285F29FC}.Release|Any CPU.Build.0 = Release|Any CPU
{8F2F33EC-3233-42FF-852C-14D7285F29FC}.Release|Any CPU.Deploy.0 = Release|Any CPU
{FF62D77B-5094-472E-878B-385723BFB4B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FF62D77B-5094-472E-878B-385723BFB4B4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FF62D77B-5094-472E-878B-385723BFB4B4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FF62D77B-5094-472E-878B-385723BFB4B4}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {96135521-CFD4-443F-BC70-4E27005355CE}
EndGlobalSection
EndGlobal
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<PackageId>WifiManager.Maui</PackageId>

<Product>$(AssemblyName) ($(TargetFramework))</Product>
<AssemblyVersion>1.0.3</AssemblyVersion>
<AssemblyFileVersion>1.0.3</AssemblyFileVersion>
<Version>1.0.3</Version>
<PackageVersion>1.0.3</PackageVersion>
<AssemblyVersion>1.0.4</AssemblyVersion>
<AssemblyFileVersion>1.0.4</AssemblyFileVersion>
<Version>1.0.4</Version>
<PackageVersion>1.0.4</PackageVersion>
<PackOnBuild>true</PackOnBuild>
<NeutralLanguage>en</NeutralLanguage>
<DefineConstants>$(DefineConstants);</DefineConstants>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes

0 comments on commit bbcdfe5

Please sign in to comment.