Skip to content

Commit 55d79cc

Browse files
committed
1.2.1
1 parent 3276dc9 commit 55d79cc

File tree

2 files changed

+50
-2
lines changed

2 files changed

+50
-2
lines changed

.github/workflows/csharp.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

Foundation.Data.Doublets.Cli/Foundation.Data.Doublets.Cli.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<Authors>link-foundation</Authors>
1515
<Description>A CLI tool for links manipulation.</Description>
1616
<PackageId>clink</PackageId>
17-
<Version>1.2.0</Version>
18-
<LicenseExpression>Unlicense</LicenseExpression>
17+
<Version>1.2.1</Version>
18+
<PackageLicenseExpression>Unlicense</PackageLicenseExpression>
1919
<RepositoryUrl>https://github.com/link-foundation/link-cli</RepositoryUrl>
2020
</PropertyGroup>
2121

0 commit comments

Comments
 (0)