File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Create a release on NuGet
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ tags :
7+ - " v[0-9]+.[0-9]+.[0-9]+"
8+ jobs :
9+ release-nuget :
10+
11+ runs-on : windows-latest
12+
13+ steps :
14+ - uses : actions/checkout@v3
15+ - name : Verify commit exists in origin/main
16+ run : |
17+ git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
18+ git branch --remote --contains | grep origin/main
19+ - name : Set VERSION variable from tag
20+ run : echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
21+ - name : Setup .NET
22+ uses : actions/setup-dotnet@v2
23+ with :
24+ dotnet-version : 8.0.x
25+ - name : Get version information from tag
26+ id : get_version
27+ uses : battila7/get-version-action@v2
28+ - name : Build
29+ run : dotnet build src\SQLiteNetExtensions.Modern\SQLiteNetExtensions.sln -c Release
30+ - name : Pack
31+ run : dotnet pack src\SQLiteNetExtensions.Modern\SQLiteNetExtensions.sln -c Release --no-build --output .
32+ # - name: Push
33+ # run: dotnet nuget push SQLiteNetExtensions.Modern.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
34+ # env:
35+ # GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}
You can’t perform that action at this time.
0 commit comments