Skip to content

Commit

Permalink
fix: Add .releaserc (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
akrock authored Sep 11, 2020
1 parent 779e83d commit 3443e33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ jobs:
- name: Test
run: dotnet test --no-restore --verbosity normal
- name: Pack
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.dryrun.outputs.new_release_published == 'true'
run: dotnet pack -p:Version=${{ steps.dryrun.outputs.new_release_version }} -p:PackageReleaseNotes=${{ steps.dryrun.outputs.new_release_notes }} --no-build --configuration Release DevDistricts/DevDistricts.csproj --output .
- name: Nuget Push
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.dryrun.outputs.new_release_published == 'true'
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.PUBLISH_TO_NUGET_ORG }} --skip-duplicate
- name: Semantic Release
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.dryrun.outputs.new_release_published == 'true'
uses: cycjimmy/semantic-release-action@v2
id: semantic
env:
Expand Down
8 changes: 8 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"branches": ['+([0-9])?(.{+([0-9]),x}).x', 'master'],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/github",
]
}

0 comments on commit 3443e33

Please sign in to comment.