Skip to content

Commit

Permalink
📝 Chore(Actions): Fix sub-submodules' errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Feb 25, 2024
1 parent c79d653 commit cc35ae5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 23 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-loaders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
37 changes: 15 additions & 22 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: dev=main
submodules: "true"

- name: Setup .NET
Expand All @@ -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 }}
Expand All @@ -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 "../.."

0 comments on commit cc35ae5

Please sign in to comment.