diff --git a/.github/workflows/build-loaders.yml b/.github/workflows/build-loaders.yml index de7f9da..2dd0ea9 100644 --- a/.github/workflows/build-loaders.yml +++ b/.github/workflows/build-loaders.yml @@ -32,6 +32,11 @@ jobs: dotnet-version: | 8.0.x + - name: Setup Sub-submodules in `KitX SDK` + working-directory: "KitX SDK" + run: | + git submodule update --init --recursive + - name: Build Loaders working-directory: "KitX SDK/KitX Loaders" run: | diff --git a/.github/workflows/build-plugins.yml b/.github/workflows/build-plugins.yml index d99be40..6d60962 100644 --- a/.github/workflows/build-plugins.yml +++ b/.github/workflows/build-plugins.yml @@ -32,6 +32,11 @@ jobs: dotnet-version: | 8.0.x + - name: Setup Sub-submodules in `KitX SDK` + working-directory: "KitX SDK" + run: | + git submodule update --init --recursive + - name: Build Plugins working-directory: "KitX SDK/KitX Plugins" run: | diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c06ac2f..a00d72e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,12 +36,16 @@ jobs: dotnet-version: | 8.0.x + - name: Setup Sub-submodules in `KitX Standard` + working-directory: "KitX Standard" + run: | + git submodule update --init --recursive + - name: Build Contracts working-directory: "KitX Standard/KitX Contracts" run: | cd "KitX.Contract.CSharp" dotnet build -c Release - cd ".." - name: Build Shared working-directory: "KitX Standard/KitX.Shared" diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 7bab9c6..3229e3a 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/checkout@v4 with: + ref: dev=main submodules: "true" - name: Setup .NET @@ -25,6 +26,16 @@ jobs: dotnet-version: | 8.0.x + - name: Setup Sub-submodules in `KitX Standard` + working-directory: "KitX Standard" + run: | + git submodule update --init --recursive + + - name: Setup Sub-submodules in `KitX SDK` + working-directory: "KitX SDK" + run: | + git submodule update --init --recursive + - name: Add to GitHub Repo run: | nuget sources add -name github -Source https://nuget.pkg.github.com/Crequency/index.json -Username Crequency -Password ${{ secrets.GitHubToken }} @@ -35,55 +46,37 @@ jobs: nuget-version: "6.x" - name: Build and Publish `Cheese` + working-directory: "KitX SDK/Cheese" if: contains(github.event.head_commit.message, '[Cheese]') || contains(github.event.head_commit.message, '[All]') run: | - cd "KitX SDK" - - cd "Cheese" dotnet build -c Release nuget push ./bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol nuget push ./bin/Release/*.nupkg -Source github -SkipDuplicate - cd "../.." - - name: Build and Publish `KitX.Contract.CSharp` + working-directory: "KitX Standard/KitX Contracts/KitX.Contract.CSharp" if: contains(github.event.head_commit.message, '[KitX.Contract.CSharp]') || contains(github.event.head_commit.message, '[All]') run: | - cd "KitX Standard" - - cd "KitX Contracts" - - cd "KitX.Contract.CSharp" dotnet build -c Release nuget push ./bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol nuget push ./bin/Release/*.nupkg -Source github -SkipDuplicate - cd "../../.." - - name: Build and Publish `KitX.Shared` + working-directory: "KitX Standard/KitX.Shared" if: contains(github.event.head_commit.message, '[KitX.Shared]') || contains(github.event.head_commit.message, '[All]') run: | - cd "KitX Standard" - - cd "KitX.Shared" dotnet build -c Release nuget push ./bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol nuget push ./bin/Release/*.nupkg -Source github -SkipDuplicate - cd "../.." - - name: Build and Publish `KitX.FileFormats` + working-directory: "KitX Standard/KitX.FileFormats" if: contains(github.event.head_commit.message, '[KitX.FileFormats]') || contains(github.event.head_commit.message, '[All]') run: | - cd "KitX Standard" - - cd "KitX.FileFormats" dotnet build -c Release nuget push ./bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol nuget push ./bin/Release/*.nupkg -Source github -SkipDuplicate - - cd "../.."