Skip to content

Commit b9fc43d

Browse files
committed
fixes.
1 parent 59eb697 commit b9fc43d

4 files changed

Lines changed: 65 additions & 5 deletions

File tree

‎.github/workflows/nuget.yml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: "Deploy to Nuget"
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
env:
9+
PROJECT_PATH: 'FmgLib.HttpClientHelper\FmgLib.HttpClientHelper.csproj'
10+
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
11+
NUGET_SOURCE_URL: 'https://api.nuget.org/v3/index.json'
12+
13+
jobs:
14+
deploy:
15+
name: 'Deploy'
16+
runs-on: 'windows-latest'
17+
steps:
18+
- name: 'Checkout'
19+
uses: actions/checkout@v2
20+
21+
- name: 'Install dotnet'
22+
uses: actions/setup-dotnet@v1
23+
with:
24+
dotnet-version: '8.x'
25+
26+
- name: 'Restore package'
27+
run: dotnet restore ${{ env.PROJECT_PATH }}
28+
29+
- name: 'Build project'
30+
run: dotnet build ${{ env.PROJECT_PATH }} --no-restore --configuration Release
31+
32+
- name: 'Get version'
33+
id: version
34+
uses: battila7/get-version-action@v2
35+
36+
- name: 'Pack project'
37+
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:PackageVersion=${{ steps.version.output.version-without-v }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
38+
39+
- name: 'Push package'
40+
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}\*.nupkg -k ${{ secrets.NUGET_AUTH_TOKEN }} -s ${{ env.NUGET_SOURCE_URL }}

‎FmgLib.HttpClientHelper/FmgLib.HttpClientHelper.csproj‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<PackageId>FmgLib.HttpClientHelper</PackageId>
99
<Summary>It is a library that offers you dynamism for the HttpClient service and contains methods that parse the returned response to the model you want.</Summary>
1010
<Title>FmgLib.HttpClientHelper</Title>
11-
<Version>1.1.0</Version>
1211
<Authors>FmgYazılım</Authors>
1312
<Company>Fmg Yazılım</Company>
1413
<Copyright>©2024</Copyright>
@@ -18,10 +17,8 @@
1817
<PackageTags>HttpClient, Client, Helper</PackageTags>
1918
<Description>It is a library that offers you dynamism for the HttpClient service and contains methods that parse the returned response to the model you want.</Description>
2019
<PackageIcon>nuget.png</PackageIcon>
21-
<AssemblyVersion>1.1.0</AssemblyVersion>
22-
<AssemblyFileVersion>1.1.0</AssemblyFileVersion>
23-
<PackageVersion>1.1.0</PackageVersion>
24-
<FileVersion>1.1.0</FileVersion>
20+
<PackageReadmeFile>README.md</PackageReadmeFile>
21+
<PackageLicenseFile>LICENSE</PackageLicenseFile>
2522
</PropertyGroup>
2623

2724
<ItemGroup>
@@ -30,7 +27,9 @@
3027
</ItemGroup>
3128

3229
<ItemGroup>
30+
<None Include="LICENSE" Pack="true" PackagePath="" />
3331
<None Include="nuget.png" Pack="true" PackagePath="" />
32+
<None Include="README.md" Pack="true" PackagePath="" />
3433
</ItemGroup>
3534

3635
</Project>

‎LICENSE‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Mustafa Gönültaş
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "FmgLib.HttpClientHelper"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

‎nuget.png‎

218 KB
Loading

0 commit comments

Comments
 (0)