Skip to content

Commit

Permalink
Improve CI build [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
amerkoleci committed Apr 6, 2021
1 parent e5b65e8 commit 2026ad6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: ci

on:
push:
branches: [ main ]
paths-ignore:
- 'CHANGELOG.md'
- 'README.md'
- 'README.md'
- 'changelog.md'
- 'readme.md'
pull_request:
branches: [ main ]

jobs:
CheckSkipCI:
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
- name: Publish to NuGet
if: github.event_name == 'push'
run: |
if ( "${{github.ref}}" -match "^refs/tags/[0-9]+\.[0-9]+\.[0-9]+$" ) {
if ( "${{github.ref}}" -match "^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$" ) {
dotnet nuget push build\packages\**\*.nupkg -s nuget.org -k ${{secrets.NUGET_TOKEN}} --no-symbols true
} else {
echo "publish is only enabled by tagging with a release tag"
Expand Down

0 comments on commit 2026ad6

Please sign in to comment.