Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 50e3119

Browse files
Mihkel Kivisildmrts
authored andcommitted
GitHub action using official libdigidocpp-csharp repository
Signed-off-by: Mihkel Kivisild <[email protected]>
1 parent 96aac68 commit 50e3119

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/dotnet-build.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,23 @@ jobs:
2525
- name: Install dependencies
2626
run: dotnet restore src/WebEid.AspNetCore.Example.sln --source "https://gitlab.com/api/v4/projects/35362906/packages/nuget/index.json" --source "https://api.nuget.org/v3/index.json"
2727

28-
- name: Download digidoc
29-
run: wget https://gitlab.com/api/v4/projects/35362906/packages/generic/digidoc/1.0.0/digidoc.zip
30-
31-
- name: Unzip digidoc
32-
uses: montudor/action-zip@v1
33-
with:
34-
args: unzip -qq digidoc.zip -d src/WebEid.AspNetCore.Example/DigiDoc
28+
- name: Download RIA repository public key
29+
run: wget https://github.com/web-eid/web-eid-asp-dotnet-example/raw/main/src/ria_public_key.gpg
30+
31+
- name: Copy RIA repository key to keyrings
32+
run: sudo cp ria_public_key.gpg /usr/share/keyrings/ria-repository.gpg
33+
34+
- name: Add RIA repository to APT
35+
run: |
36+
echo "deb [signed-by=/usr/share/keyrings/ria-repository.gpg] https://installer.id.ee/media/ubuntu/ $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/ria-repository.list
37+
38+
- name: Update APT and install libdigidocpp-csharp
39+
run: |
40+
sudo apt update
41+
sudo apt install -y --no-install-recommends libdigidocpp-csharp
42+
43+
- name: Copy the necessary DigiDoc C# library files
44+
run: sudo cp /usr/include/digidocpp_csharp/* src/WebEid.AspNetCore.Example/DigiDoc/
3545

3646
- name: Build
3747
run: dotnet publish --configuration Release --no-restore src/WebEid.AspNetCore.Example.sln --verbosity normal

0 commit comments

Comments
 (0)