Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add submodule support #167

Merged
merged 3 commits into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -40,6 +40,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
16 changes: 15 additions & 1 deletion .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -14,9 +14,15 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat.sln

- name: Build Test
run: dotnet build ProjBobcat/ProjBobcat.sln -c Release --no-restore
publish-package:
@@ -28,24 +34,32 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0

- uses: actions/checkout@v4
with:
with:
fetch-depth: 0
submodules: recursive

- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0

- name: Get current datetime
id: currentdatetime
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYYMMDDHHmmssSSS"

- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat/ProjBobcat.csproj

- name: Build the project
run: dotnet build ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release --no-restore

- name: Create the package
run: $tag="${{ steps.previoustag.outputs.tag }}".replace("v",""); dotnet pack ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release -p:PackageVersion="$tag-CI${{ steps.currentdatetime.outputs.time }}-beta" --no-build --no-restore -o .

- name: Publish the package to NuGet.org
run: dotnet nuget push *.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -14,11 +14,18 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat.sln

- name: Build Test
run: dotnet build ProjBobcat/ProjBobcat.sln -c Release --no-restore

publish-package:
name: Publish Release package
runs-on: windows-latest
@@ -28,12 +35,20 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat/ProjBobcat.csproj

- name: Build the project
run: dotnet build ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release --no-restore

- name: Create the package
run: $tag=${{ github.ref }}.replace("v",""); dotnet pack ProjBobcat/ProjBobcat/ProjBobcat.csproj -c Release -p:PackageVersion=$tag --no-build --no-restore -o .

- name: Publish the package to NuGet.org
run: dotnet nuget push *.nupkg -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -15,8 +15,14 @@ jobs:
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0

- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat.sln

- name: Build Test
run: dotnet build ProjBobcat/ProjBobcat.sln -c Release --no-restore
Loading