Skip to content

Commit c4c9fc1

Browse files
authored
Push nuget packages to nuget.org instead of Github packages (#4)
1 parent 12f80ef commit c4c9fc1

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,5 @@ jobs:
2929
uses: actions/setup-dotnet@v1.7.2
3030
with:
3131
dotnet-version: 5.0.x # SDK Version to use.
32-
source-url: https://nuget.pkg.github.com/data-automation-framework/index.json
33-
env:
34-
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3532
- name: Build project
3633
run: dotnet build --configuration Release

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ jobs:
4949
uses: actions/setup-dotnet@v1.7.2
5050
with:
5151
dotnet-version: 5.0.x # SDK Version to use.
52-
source-url: https://nuget.pkg.github.com/data-automation-framework/index.json
52+
source-url: https://api.nuget.org/v3/index.json
5353
env:
5454
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5555
- name: Build project
5656
run: dotnet build --configuration Release
5757
- name: Create the nuget package
5858
run: dotnet pack Daf.Core.Sql/Daf.Core.Sql.csproj --configuration Release --output Daf.Core.Sql/bin/Release/Publish
5959
- name: Publish to GitHub
60-
run: dotnet nuget push Daf.Core.Sql/bin/Release/Publish/**/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }}
60+
run: dotnet nuget push Daf.Core.Sql/bin/Release/Publish/**/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET }}
6161
- name: Create release
6262
uses: softprops/action-gh-release@v1
6363
with:

Daf.Core.Sql/Daf.Core.Sql.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1818
</PropertyGroup>
1919
<ItemGroup>
20-
<PackageReference Include="Daf.Core.Sdk" Version="0.0.2" />
20+
<PackageReference Include="Daf.Core.Sdk" Version="0.0.8" />
2121
<PackageReference Include="LumenWorksCsvReader" Version="4.0.0" />
2222
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.194">
2323
<PrivateAssets>all</PrivateAssets>

0 commit comments

Comments
 (0)