Skip to content

Commit 76a5ac1

Browse files
committed
v2.5.8 is the last version of v2.5.x
1 parent b2b8149 commit 76a5ac1

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
dotnet-version: ${{ env.DOTNET_VERSION }}
3434
dotnet-quality: 'preview'
3535

36-
- name: Install dependencies
36+
- name: Install Dependencies
3737
run: dotnet restore -p:FullTargets=false
3838

3939
- name: Build
@@ -42,10 +42,12 @@ jobs:
4242
- name: Test
4343
run: dotnet test --no-restore -p:FullTargets=false
4444

45-
pack-and-upload:
45+
pack-and-publish:
4646
name: pack-and-publish
4747
needs: build-and-test
4848
runs-on: ubuntu-latest
49+
env:
50+
NUGET_SOURCE: https://nuget.pkg.github.com/yungd1plomat/index.json
4951

5052
steps:
5153
- name: Checkout
@@ -59,18 +61,18 @@ jobs:
5961
dotnet-version: ${{ env.DOTNET_VERSION }}
6062
dotnet-quality: 'preview'
6163

62-
- name: Install dependencies
64+
- name: Install Dependencies
6365
run: dotnet restore -p:FullTargets=true
6466

6567
- name: Pack
6668
run: dotnet pack --no-restore --version-suffix build.${{ github.run_number }}.${{ github.run_attempt }} -o "nugets" -p:FullTargets=true
6769

6870
- name: Publish
6971
if: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
70-
run: dotnet nuget push ./nugets/*nupkg --source "github" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
72+
run: dotnet nuget push ./nugets/*nupkg --source "$env:NUGET_SOURCE" --skip-duplicate --api-key ${{ secrets.NUGET_KEY }}
7173

7274
- name: Upload
7375
uses: actions/upload-artifact@v3
7476
with:
7577
name: Nuget Package
76-
path: nugets/**
78+
path: nugets/**

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<RepositoryUrl>https://github.com/yungd1plomat/AdvancedSharpAdbClient</RepositoryUrl>
2525
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2626
<Title>.NET client for adb, Android Debug Bridge (AdvancedSharpAdbClient)</Title>
27-
<VersionPrefix>2.5.7</VersionPrefix>
27+
<VersionPrefix>2.5.8</VersionPrefix>
2828
</PropertyGroup>
2929

3030
<PropertyGroup>

nuget.config

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)