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
4 changes: 4 additions & 0 deletions .github/actions/build-libraries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,25 @@ runs:
with:
path: "src/server/abstractions/bin/Release"
name: libs-abstractions-${{ inputs.version }}
include-hidden-files: true

- name: Upload data artifact
uses: actions/upload-artifact@v4
with:
path: "src/server/data/bin/Release"
name: libs-data-${{ inputs.version }}
include-hidden-files: true

- name: Upload letter artifact
uses: actions/upload-artifact@v4
with:
path: "src/server/letter/bin/Release"
name: libs-letter-${{ inputs.version }}
include-hidden-files: true

- name: Upload host artifact
uses: actions/upload-artifact@v4
with:
path: "src/server/host/bin/Release"
name: libs-host-${{ inputs.version }}
include-hidden-files: true
8 changes: 4 additions & 4 deletions .github/workflows/stage-3-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
artefact-jekyll-docs:
name: "Build Docs"
runs-on: ubuntu-latest
timeout-minutes: 3
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v4
Expand All @@ -48,7 +48,7 @@ jobs:
artefact-sdks:
name: "Build SDKs"
runs-on: ubuntu-latest
timeout-minutes: 3
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v4
Expand All @@ -60,7 +60,7 @@ jobs:
artefact-servers:
name: "Build servers"
runs-on: ubuntu-latest
timeout-minutes: 3
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v4
Expand All @@ -72,7 +72,7 @@ jobs:
artefact-libs:
name: "Build libs"
runs-on: ubuntu-latest
timeout-minutes: 3
timeout-minutes: 10
steps:
- name: "Checkout code"
uses: actions/checkout@v4
Expand Down
182 changes: 179 additions & 3 deletions .github/workflows/stage-5-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
publish:
name: "Publish packages"
runs-on: ubuntu-latest
timeout-minutes: 3
timeout-minutes: 10

steps:
- name: "Checkout code"
Expand Down Expand Up @@ -243,7 +243,8 @@ jobs:
with:
path: .
name: sdk-csharp-${{ inputs.version }}
- run: ls -la
- run: |
ls -la
- run: |
dotnet nuget add source \
--username nhs-notify-supplier-api \
Expand Down Expand Up @@ -367,7 +368,9 @@ jobs:
with:
path: .
name: libs-abstractions-${{ inputs.version }}
- run: ls -la
- run: |
ls -la
find . -name ".version"
- run: |
dotnet nuget add source \
--username nhs-notify-supplier-api \
Expand Down Expand Up @@ -406,3 +409,176 @@ jobs:
env:
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



### PUBLISH LIBS LETTERS NUGET
publishliblettersnuget:
name: "Publish libs letter packages to nuget.pkg.github.com"
runs-on: ubuntu-latest
needs: [publish]
permissions:
packages: write
contents: read
steps:
- name: "Get the artefacts"
uses: actions/download-artifact@v4
with:
path: .
name: libs-letter-${{ inputs.version }}
- run: |
ls -la
find . -name ".version"
- run: |
dotnet nuget add source \
--username nhs-notify-supplier-api \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github \
"https://nuget.pkg.github.com/NHSDigital/index.json"
- run: |
echo "ROOT .version file is: $(cat .version)"
echo "GH variable version is: ${{ inputs.version }}"
name: Showing the base versions

- run: |
VERSION=${{ inputs.version }}
SHORT_VERSION="$(echo $VERSION | rev | cut -d"." -f2- | rev)"
NUGET_VERSION="$(echo "$VERSION" | tr + .)"
echo $VERSION
echo $SHORT_VERSION
echo $NUGET_VERSION
SHORT_NUGET_VERSION="$(echo $NUGET_VERSION | rev | cut -d"." -f2- | rev)"
echo $SHORT_NUGET_VERSION
SHORTER_NUGET_VERSION="$(echo $SHORT_NUGET_VERSION | rev | cut -d"." -f2- | rev)"
echo $SHORTER_NUGET_VERSION
TEST_NUGET_VERSION="$(echo $NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
TEST_NUGET_VERSION="$(echo $TEST_NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
echo $TEST_NUGET_VERSION
echo "TEST_NUGET_VERSION=$TEST_NUGET_VERSION" >> "$GITHUB_OUTPUT"
name: Set the nuget version
id: set-nuget-version

- run: |
dotnet nuget push \
nhs.notify.suppliers.api.letter.${TEST_NUGET_VERSION}.nupkg \
--source github \
--api-key $GITHUB_TOKEN
env:
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}


### PUBLISH LIBS data NUGET
publishlibhostnuget:
name: "Publish libs host packages to nuget.pkg.github.com"
runs-on: ubuntu-latest
needs: [publish]
permissions:
packages: write
contents: read
steps:
- name: "Get the artefacts"
uses: actions/download-artifact@v4
with:
path: .
name: libs-host-${{ inputs.version }}
- run: |
ls -la
find . -name ".version"
- run: |
dotnet nuget add source \
--username nhs-notify-supplier-api \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github \
"https://nuget.pkg.github.com/NHSDigital/index.json"
- run: |
echo "ROOT .version file is: $(cat .version)"
echo "GH variable version is: ${{ inputs.version }}"
name: Showing the base versions

- run: |
VERSION=${{ inputs.version }}
SHORT_VERSION="$(echo $VERSION | rev | cut -d"." -f2- | rev)"
NUGET_VERSION="$(echo "$VERSION" | tr + .)"
echo $VERSION
echo $SHORT_VERSION
echo $NUGET_VERSION
SHORT_NUGET_VERSION="$(echo $NUGET_VERSION | rev | cut -d"." -f2- | rev)"
echo $SHORT_NUGET_VERSION
SHORTER_NUGET_VERSION="$(echo $SHORT_NUGET_VERSION | rev | cut -d"." -f2- | rev)"
echo $SHORTER_NUGET_VERSION
TEST_NUGET_VERSION="$(echo $NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
TEST_NUGET_VERSION="$(echo $TEST_NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
echo $TEST_NUGET_VERSION
echo "TEST_NUGET_VERSION=$TEST_NUGET_VERSION" >> "$GITHUB_OUTPUT"
name: Set the nuget version
id: set-nuget-version

- run: |
dotnet nuget push \
nhs.notify.suppliers.api.host.${TEST_NUGET_VERSION}.nupkg \
--source github \
--api-key $GITHUB_TOKEN
env:
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}



### PUBLISH LIBS host NUGET
publishlibdatanuget:
name: "Publish libs host packages to nuget.pkg.github.com"
runs-on: ubuntu-latest
needs: [publish]
permissions:
packages: write
contents: read
steps:
- name: "Get the artefacts"
uses: actions/download-artifact@v4
with:
path: .
name: libs-host-${{ inputs.version }}
- run: |
ls -la
find . -name ".version"
- run: |
dotnet nuget add source \
--username nhs-notify-supplier-api \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github \
"https://nuget.pkg.github.com/NHSDigital/index.json"
- run: |
echo "ROOT .version file is: $(cat .version)"
echo "GH variable version is: ${{ inputs.version }}"
name: Showing the base versions

- run: |
VERSION=${{ inputs.version }}
SHORT_VERSION="$(echo $VERSION | rev | cut -d"." -f2- | rev)"
NUGET_VERSION="$(echo "$VERSION" | tr + .)"
echo $VERSION
echo $SHORT_VERSION
echo $NUGET_VERSION
SHORT_NUGET_VERSION="$(echo $NUGET_VERSION | rev | cut -d"." -f2- | rev)"
echo $SHORT_NUGET_VERSION
SHORTER_NUGET_VERSION="$(echo $SHORT_NUGET_VERSION | rev | cut -d"." -f2- | rev)"
echo $SHORTER_NUGET_VERSION
TEST_NUGET_VERSION="$(echo $NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
TEST_NUGET_VERSION="$(echo $TEST_NUGET_VERSION | sed -E 's/.([^.]*)$/\1/')"
echo $TEST_NUGET_VERSION
echo "TEST_NUGET_VERSION=$TEST_NUGET_VERSION" >> "$GITHUB_OUTPUT"
name: Set the nuget version
id: set-nuget-version

- run: |
dotnet nuget push \
nhs.notify.suppliers.api.host.${TEST_NUGET_VERSION}.nupkg \
--source github \
--api-key $GITHUB_TOKEN
env:
TEST_NUGET_VERSION: ${{ steps.set-nuget-version.outputs.TEST_NUGET_VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build: # Build the project artefact @Pipeline
(cd server && make build)
(cd sdk && make build)
(cd docs && make build)

(cd libs && make build)
publish: # Publish the project artefact @Pipeline
# TODO: Implement the artefact publishing step

Expand Down
2 changes: 1 addition & 1 deletion sdk/_config.version.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 0.2.0-20250704.123845+a16df0f
version: 0.2.0-20250708.142731+ca74a4e
2 changes: 1 addition & 1 deletion server/_config.version.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 0.2.0-20250704.123842+a16df0f
version: 0.2.0-20250708.142722+ca74a4e
2 changes: 1 addition & 1 deletion src/server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SHELL = /bin/bash

build: version #VER=$$(cat .version) # Build the project artefact @Pipeline
VER=$$(cat .version) && \
echo $$VER
echo $$VER && \
./build.sh $$VER

version:
Expand Down
2 changes: 1 addition & 1 deletion src/server/_config.version.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 0.2.0-20250708.102840+fb71052
version: 0.2.0-20250708.200258+fdc7cef
7 changes: 6 additions & 1 deletion src/server/abstractions/abstractions.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<Nullable>enable</Nullable>
<PublishTrimmed>false</PublishTrimmed>
<AssemblyName>nhs.notify.suppliers.api.abstractions</AssemblyName>
<NoDefaultExcludes>true</NoDefaultExcludes>
</PropertyGroup>

<ItemGroup>
Expand All @@ -16,5 +17,9 @@
<PackageReference Include="Microsoft.Extensions.Options" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.6" />
</ItemGroup>

<ItemGroup>
<Content Include=".version">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>
Loading
Loading