diff --git a/.github/workflows/push_to_nuget.yml b/.github/workflows/push_to_nuget.yml index 0bfa4f529..125fdad6a 100644 --- a/.github/workflows/push_to_nuget.yml +++ b/.github/workflows/push_to_nuget.yml @@ -15,6 +15,11 @@ jobs: runs-on: ubuntu-latest + # Needed for nuget.org Trusted Publishing (GitHub OIDC token exchange). + permissions: + id-token: write + contents: read + steps: - name: Checkout code uses: actions/checkout@v3 @@ -25,7 +30,6 @@ jobs: - name: 'Setup Nuget' uses: nuget/setup-nuget@v1 with: - nuget-api-key: ${{ secrets.NUGET_API_KEY }} nuget-version: '5.x' - name: Setup .NET uses: actions/setup-dotnet@v2 @@ -38,5 +42,15 @@ jobs: cp Metadata/*.nuspec build/ - name: 'Run nuget pack' run: nuget pack build/*.nuspec -OutputDirectory build + # Trusted Publishing: exchanges the GitHub OIDC token for a short-lived + # nuget.org API key. Requires a Trusted Publishing policy on nuget.org + # for RealEstateCore/rec + push_to_nuget.yml, owned by the user below. + - name: 'Log in to nuget.org (Trusted Publishing)' + id: nuget-login + uses: NuGet/login@v1 + with: + user: PeteHart - name: 'Publish to nuget.org' - run: nuget push build/*.nupkg -Source "${{ env.NUGET_FEED_URL }}" -SkipDuplicate + env: + NUGET_API_KEY: ${{ steps.nuget-login.outputs.NUGET_API_KEY }} + run: nuget push build/*.nupkg -ApiKey "$NUGET_API_KEY" -Source "${{ env.NUGET_FEED_URL }}" -SkipDuplicate -NonInteractive diff --git a/ReleaseNotes.md b/ReleaseNotes.md index ce932d061..e261a263f 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,25 @@ # RealEstateCore Release Notes +## V4.2 -- Wing + +REC 4.2 is a minor, backwards-compatible release. + +### New Features + +* **Wing.** New `Wing` class under `Space/Architecture/SubBuilding/`, a subclass of `SubBuilding`. Brick 1.4 deprecates its `brick:Location` domain in favour of `rec:Space`, and `brick:Wing` was the only Brick location class without a REC counterpart. For new modelling, REC still recommends the more general `SubBuilding` where possible. Available in both the DTDL and SHACL models. + +### Governance + +* ODR 004 — Introduction of Space:Wing + +### Fixes + +* NuGet: the v4.1 package was not published to nuget.org because the publish step failed. 4.2 is the first 4.x release on NuGet since 4.0.0.19 and includes all 4.1 changes. + +### Known issues + +* The edge message schema has not yet been updated for REC4. A REC4-compliant edge message schema remains planned for a later release in the 4.x series. + ## V4.1 -- Warranty, new room types, governance framework REC 4.1 is a minor, backwards-compatible release that consolidates feature additions, clarifications, and governance improvements accumulated since v4.0. diff --git a/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json b/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json index 5606d499b..e2928c64f 100644 --- a/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json +++ b/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json @@ -4,7 +4,7 @@ "displayName": { "en": "Wing" }, - "comment": { + "description": { "en": "Introduced in REC as Brick is deprecating their location domain. A building may comprise quite many elements such as towers, annexes, rotundas etc. As well as wings. It's difficult to capture all variations in the ontology and REC recommend to use the generalization sub building if possible." }, "extends": "dtmi:org:w3id:rec:SubBuilding;1", diff --git a/Source/SHACL/RealEstateCore/rec.ttl b/Source/SHACL/RealEstateCore/rec.ttl index 8335ab04e..8421b6742 100644 --- a/Source/SHACL/RealEstateCore/rec.ttl +++ b/Source/SHACL/RealEstateCore/rec.ttl @@ -2916,6 +2916,13 @@ rec:WasteManagementRoom rdfs:label "Waste management room" ; rdfs:subClassOf rec:Room ; . +rec:Wing + rdf:type rdfs:Class ; + rdf:type sh:NodeShape ; + rdfs:comment "Introduced in REC as Brick is deprecating their location domain. A building may comprise quite many elements such as towers, annexes, rotundas etc. As well as wings. It's difficult to capture all variations in the ontology and REC recommend to use the generalization sub building if possible." ; + rdfs:label "Wing" ; + rdfs:subClassOf rec:SubBuilding ; +. rec:Window rdf:type rdfs:Class ; rdf:type sh:NodeShape ;