We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933ca35 commit ec43b5cCopy full SHA for ec43b5c
1 file changed
.github/workflows/ci-cd.yml
@@ -3,7 +3,9 @@ name: CI/CD
3
on:
4
push:
5
branches: [ main ]
6
- tags: [ 'v*.*.*' ]
+ tags:
7
+ - 'v[0-9]*.[0-9]*.[0-9]*' # stable: v1.0.0
8
+ - 'v[0-9]*.[0-9]*.[0-9]*-*' # pre-release: v1.0.0-beta
9
pull_request:
10
11
workflow_dispatch:
@@ -118,7 +120,10 @@ jobs:
118
120
run: dotnet build --no-restore -c Release
119
121
122
- name: Pack
- run: dotnet pack src/CDT.Core/CDT.Core.csproj --no-build -c Release -o ./artifacts
123
+ shell: pwsh
124
+ run: |
125
+ $version = "${{ github.ref_name }}" -replace '^v', ''
126
+ dotnet pack src/CDT.Core/CDT.Core.csproj --no-build -c Release -o ./artifacts /p:Version=$version
127
128
- name: Push to NuGet.org
129
# Requires a NUGET_API_KEY secret configured in:
0 commit comments