Skip to content
Merged
Show file tree
Hide file tree
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
19 changes: 2 additions & 17 deletions .github/workflows/build-documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:

pull_request:

Comment thread
roji marked this conversation as resolved.
# Used to trigger the flow from Npgsql/EFCore.PG via HTTP POST
repository_dispatch:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -23,6 +20,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
submodules: true

Comment thread
roji marked this conversation as resolved.
- name: Use Node.js
uses: actions/setup-node@v6.4.0
Expand All @@ -41,26 +40,12 @@ jobs:
with:
dotnet-version: 10.0.x

- name: Checkout Npgsql
uses: actions/checkout@v6
with:
repository: npgsql/npgsql
ref: docs
path: Npgsql

# docfx has issues specifically with analyzer/sourcegen projects; build manually before.
- name: Build Npgsql
run: dotnet build -c Release
shell: bash
working-directory: Npgsql

- name: Checkout EFCore.PG
uses: actions/checkout@v6
with:
repository: npgsql/Npgsql.EntityFrameworkCore.PostgreSQL
ref: docs
path: EFCore.PG

- name: Build EFCore.PG
run: dotnet build -c Release
shell: bash
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
obj
/EFCore.PG
/Npgsql
/_site
/_exported_templates
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "Npgsql"]
path = Npgsql
url = https://github.com/npgsql/npgsql.git
[submodule "EFCore.PG"]
path = EFCore.PG
url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git
Comment on lines +3 to +6
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building the docs runs dotnet build inside the submodule working trees, which will typically produce untracked bin//obj/ and leave the submodules in a dirty state in local dev checkouts. Consider adding ignore = dirty (or ignore = untracked) for these submodules in .gitmodules to reduce local workflow friction.

Suggested change
url = https://github.com/npgsql/npgsql.git
[submodule "EFCore.PG"]
path = EFCore.PG
url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git
url = https://github.com/npgsql/npgsql.git
ignore = dirty
[submodule "EFCore.PG"]
path = EFCore.PG
url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git
ignore = dirty

Copilot uses AI. Check for mistakes.
1 change: 1 addition & 0 deletions EFCore.PG
Submodule EFCore.PG added at 2679a9
1 change: 1 addition & 0 deletions Npgsql
Submodule Npgsql added at 4d57e2
Loading