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 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 diff --git a/.github/workflows/release-nuget.yml b/.github/workflows/release-nuget.yml index 3dc3bc6..b0f94ec 100644 --- a/.github/workflows/release-nuget.yml +++ b/.github/workflows/release-nuget.yml @@ -12,17 +12,27 @@ 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/* 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: diff --git a/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj b/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj index a9abe42..2db400c 100644 --- a/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj +++ b/src/Plugin.Maui.Feature/Plugin.Maui.Feature.csproj @@ -81,4 +81,27 @@ +