Skip to content

Commit 27ad864

Browse files
committed
Minor fix for tags.
1 parent d1de0e8 commit 27ad864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: CI
33
on:
44
push:
55
branches: [master, main, develop, "release/**", "hotfix/**", "feature/**"]
6-
tags: ["v*"]
6+
tags: ["*"]
77
pull_request:
88
branches: [master, main, develop]
99

@@ -46,7 +46,7 @@ jobs:
4646
publish:
4747
needs: build
4848
runs-on: ubuntu-latest
49-
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/v'))
49+
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/heads/release/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/heads/develop') || startsWith(github.ref, 'refs/tags/'))
5050
permissions:
5151
contents: read
5252
id-token: write
@@ -102,7 +102,7 @@ jobs:
102102
user: potatman
103103

104104
- name: Push to NuGet.org
105-
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
105+
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')
106106
run: |
107107
dotnet nuget push "./artifacts/*.nupkg" \
108108
--api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} \

0 commit comments

Comments
 (0)