-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added actions to publish nuget package for ABAC and PEP (#833)
* added actions to publish nuget package for ABAC and PEP * added addition trigger on pull request for testing * comment release tag check for testing * Fixed PR comments * updated build number to check if that causes the error * Fix PR comments 2 * update nuget api key name * update publish script and project properties for nuget * Update the publish action * updated publish action and package version for abac * update package verison for testing * update triggers * updated the triggers and pep action * updated dotnet version for pep * replaced the apikey variable usage * Update the package version for abac and dotnet version in publish script * update the dotnet version in publish script * updated dotnet version to 8 in abac action * update dotnet version to 8 for pep action * updated nuget action for PEP * Updated pep project file * Fixed the pep project file --------- Co-authored-by: acn-dgopa <acn-dgopa@dev-acn-tje-14>
- Loading branch information
Showing
4 changed files
with
102 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Pack and publish Altinn.Authorization.ABAC nuget package | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build-pack: | ||
if: startsWith(github.ref, 'refs/tags/Altinn.Authorization.ABAC-') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
- name: Build | ||
working-directory: src/Altinn.Authorization.ABAC | ||
run: | | ||
dotnet build --configuration Release | ||
- name: Pack Altinn.Authorization.ABAC | ||
working-directory: src/Altinn.Authorization.ABAC | ||
run: | | ||
dotnet pack --configuration Release --no-build | ||
- name: Create artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nuget package | ||
path: src/Altinn.Authorization.ABAC/bin/Release/*.nupkg | ||
if-no-files-found: error | ||
|
||
- name: publish Altinn.Authorization.ABAC | ||
env: | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
working-directory: src/Altinn.Authorization.ABAC | ||
run: | | ||
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Pack and publish Altinn.Common.PEP nuget package | ||
|
||
on: | ||
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build-pack: | ||
if: startsWith(github.ref, 'refs/tags/Altinn.Common.PEP-') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: | | ||
8.0.x | ||
- name: Build | ||
working-directory: src/Altinn.Common.PEP/Altinn.Common.PEP | ||
run: | | ||
dotnet build --configuration Release | ||
- name: Pack Altinn.Common.PEP | ||
working-directory: src/Altinn.Common.PEP/Altinn.Common.PEP | ||
run: | | ||
dotnet pack --configuration Release --no-build | ||
- name: Create artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nuget package | ||
path: src/Altinn.Common.PEP/Altinn.Common.PEP/bin/Release/*.nupkg | ||
if-no-files-found: error | ||
|
||
- name: publish Altinn.Common.PEP | ||
env: | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
working-directory: src/Altinn.Common.PEP/Altinn.Common.PEP | ||
run: | | ||
dotnet nuget push bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters