diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index e6fca17..f8c1c9d 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -177,3 +177,25 @@ jobs: projectVersion: ${{ github.ref_name }} bomFilename: ${{ github.workspace }}/container-bom.json + generate-licences: + needs: [container-build, preprocess] + runs-on: ubuntu-latest + container: catthehacker/ubuntu:act-latest + steps: + - uses: actions/checkout@v3 + - name: Setup dotnet + uses: https://github.com/actions/setup-dotnet@v3 + with: + dotnet-version: 8.0 + - name: Install nuget-license + run: dotnet tool install --global dotnet-project-licenses + - name: Export licenses + run: dotnet-project-licenses -i . -u --projects-filter .\projects_ignore_licenses.json -m -j -e -f licenses + - name: Package licenses + run: zip licenses + - name: Upload licenses + uses: actions/upload-artifact@v3 + with: + name: licenses.zip + path: artifacts/licenses.zip + retention-days: 31 diff --git a/.gitignore b/.gitignore index 4789088..43b19b8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,8 @@ ## ## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore +licenses + # User-specific files *.rsuser *.suo diff --git a/projects_ignore_licenses.json b/projects_ignore_licenses.json new file mode 100644 index 0000000..5824897 --- /dev/null +++ b/projects_ignore_licenses.json @@ -0,0 +1,3 @@ +[ + "Benchmarks" +]