Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
chore: adjust build
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Bühler committed Dec 28, 2020
1 parent e4fdc8a commit 0bf3687
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/dotnet-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100
- name: Create k8s Cluster
uses: helm/[email protected]
- name: Test
run: ./build.sh --target test --no-logo
semantic-release:
Expand All @@ -30,5 +32,8 @@ jobs:
extra_plugins: |
@semantic-release/exec
env:
NUGET_KEY: ${{ secrets.NUGET_KEY }}
NUGET_SOURCE: 'https://api.nuget.org/v3/index.json'
NUGET_API_KEY: ${{ secrets.NUGET_KEY }}
GH_NUGET_SOURCE: 'https://nuget.pkg.github.com/buehler/index.json'
GH_NUGET_API_KEY: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 10 additions & 4 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,27 @@
[
"@semantic-release/exec",
{
"prepareCmd": "./build.sh --no-logo --version ${nextRelease.version} --target Pack"
"prepareCmd": "./build.sh --no-logo --version ${nextRelease.version} --release-notes '${nextRelease.notes}' --target Pack"
}
]
],
"publish": [
[
"@semantic-release/github",
{
"assets": [{ "path": "artifacts/*.nupkg" }]
}
],
[
"@semantic-release/exec",
{
"publishCmd": "./build.sh --no-logo --target Publish"
"publishCmd": "./build.sh --no-logo --target Publish --source-env GH_NUGET_SOURCE --api-key-env GH_NUGET_API_KEY"
}
],
[
"@semantic-release/github",
"@semantic-release/exec",
{
"assets": [{ "path": "artifacts/*.nupkg" }]
"publishCmd": "./build.sh --no-logo --target Publish --source-env NUGET_SOURCE --api-key-env NUGET_API_KEY"
}
]
]
Expand Down

0 comments on commit 0bf3687

Please sign in to comment.