From fb7e68ea8e78de7f73d5bbf0b87b7cbd085cffdc Mon Sep 17 00:00:00 2001
From: ArturWyszomirski <113598723+ArturWyszomirski@users.noreply.github.com>
Date: Sun, 22 Sep 2024 21:08:33 +0200
Subject: [PATCH 1/6] Update ci.yml with setting using submodules to true
---
.github/workflows/ci.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5106de6..4f5a63a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,5 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4
+ with:
+ submodules: true
- name: Build
run: dotnet build src\Plugin.Maui.Feature.sln -c Release
From 54739c9bfecb807f13b330ed7b2e9bccfaa5006a Mon Sep 17 00:00:00 2001
From: ArturWyszomirski <113598723+ArturWyszomirski@users.noreply.github.com>
Date: Sun, 22 Sep 2024 21:09:23 +0200
Subject: [PATCH 2/6] Update ci-sample.yml with setting using submodules to
true
---
.github/workflows/ci-sample.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/ci-sample.yml b/.github/workflows/ci-sample.yml
index 8262442..d87a478 100644
--- a/.github/workflows/ci-sample.yml
+++ b/.github/workflows/ci-sample.yml
@@ -15,5 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v4
+ with:
+ submodules: true
- name: Build
run: dotnet build samples\Plugin.Maui.Feature.Sample.sln -c Release
From d0b966cc493ce81ce397c591c3bd34a4613b9fb5 Mon Sep 17 00:00:00 2001
From: ArturWyszomirski <113598723+ArturWyszomirski@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:00:54 +0200
Subject: [PATCH 3/6] Update release-nuget.yml with setting using submodules to
true
---
.github/workflows/release-nuget.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/release-nuget.yml b/.github/workflows/release-nuget.yml
index 3dc3bc6..8bc006e 100644
--- a/.github/workflows/release-nuget.yml
+++ b/.github/workflows/release-nuget.yml
@@ -12,6 +12,8 @@ jobs:
steps:
- uses: actions/checkout@v4
+ with:
+ submodules: true
- name: Verify commit exists in origin/main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
From 66e250f89cac8f9e929d4387d1a0ee9b3b80710d Mon Sep 17 00:00:00 2001
From: ArturWyszomirski <113598723+ArturWyszomirski@users.noreply.github.com>
Date: Thu, 26 Sep 2024 12:59:12 +0200
Subject: [PATCH 4/6] Update release-nuget.yml with submodule build
---
.github/workflows/release-nuget.yml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/release-nuget.yml b/.github/workflows/release-nuget.yml
index 8bc006e..b0f94ec 100644
--- a/.github/workflows/release-nuget.yml
+++ b/.github/workflows/release-nuget.yml
@@ -14,17 +14,25 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
+
- 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
+
+ # If your project contains submodule uncomment below and fill with proper name an path
+ # - name: Build dependencies
+ # run: dotnet build dependencies\Submodule.Solution.Name\src\Submodule.Solution.Name.sln -c Release
+
- name: Pack
run: dotnet pack src\Plugin.Maui.Feature.sln -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }}
+
- name: Push
run: dotnet nuget push src\Plugin.Maui.Feature\bin\Release\Plugin.Maui.Feature.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
env:
From 68bb4288019b97baaff03a4c155a494d159054eb Mon Sep 17 00:00:00 2001
From: ArturWyszomirski <113598723+ArturWyszomirski@users.noreply.github.com>
Date: Thu, 26 Sep 2024 13:13:12 +0200
Subject: [PATCH 5/6] Update Plugin.Maui.Feature.csproj with copying submodule
dlls to NuGet package
---
.../Plugin.Maui.Feature.csproj | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj b/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj
index a9abe42..26c4380 100644
--- a/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj
+++ b/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj
@@ -81,4 +81,27 @@
+
From 5d88f7950ebf234dea9914944a90c78daec781f2 Mon Sep 17 00:00:00 2001
From: ArturWyszomirski <113598723+ArturWyszomirski@users.noreply.github.com>
Date: Sat, 5 Oct 2024 14:33:11 +0200
Subject: [PATCH 6/6] Fix submodules paths
---
src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj b/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj
index 26c4380..2db400c 100644
--- a/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj
+++ b/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj
@@ -91,16 +91,16 @@
-
-
-
-
-->