File tree Expand file tree Collapse file tree 2 files changed +50
-2
lines changed
Foundation.Data.Doublets.Cli Expand file tree Collapse file tree 2 files changed +50
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : C#
2
+
3
+ # Trigger the workflow when a new tag is pushed
4
+ on :
5
+ push :
6
+ tags :
7
+ - ' v*' # This example triggers on tags like v1.0.0
8
+
9
+ jobs :
10
+ build-and-publish :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ # Step 1: Checkout the repository
15
+ - name : Checkout repository
16
+ uses : actions/checkout@v3
17
+
18
+ # Step 2: Setup .NET SDK
19
+ - name : Setup .NET
20
+ uses : actions/setup-dotnet@v3
21
+ with :
22
+ dotnet-version : ' 8'
23
+
24
+ # Step 3: Restore dependencies
25
+ - name : Restore dependencies
26
+ run : dotnet restore
27
+
28
+ # Step 4: Build the project
29
+ - name : Build
30
+ run : dotnet build --configuration Release --no-restore
31
+
32
+ # Step 5: Run tests (optional)
33
+ - name : Test
34
+ run : dotnet test --no-build --verbosity normal
35
+
36
+ # Step 6: Pack the NuGet package
37
+ - name : Pack
38
+ run : dotnet pack --configuration Release --no-build --output ./output
39
+
40
+ # Step 7: Publish the NuGet package
41
+ - name : Publish to NuGet
42
+ env :
43
+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
44
+ run : |
45
+ dotnet nuget push ./output/*.nupkg \
46
+ --api-key $NUGET_API_KEY \
47
+ --source https://api.nuget.org/v3/index.json \
48
+ --skip-duplicate
Original file line number Diff line number Diff line change 14
14
<Authors >link-foundation</Authors >
15
15
<Description >A CLI tool for links manipulation.</Description >
16
16
<PackageId >clink</PackageId >
17
- <Version >1.2.0 </Version >
18
- <LicenseExpression >Unlicense</LicenseExpression >
17
+ <Version >1.2.1 </Version >
18
+ <PackageLicenseExpression >Unlicense</PackageLicenseExpression >
19
19
<RepositoryUrl >https://github.com/link-foundation/link-cli</RepositoryUrl >
20
20
</PropertyGroup >
21
21
You can’t perform that action at this time.
0 commit comments