Skip to content

Commit 70648be

Browse files
authored
Migrate nightly package publishing from GitHub Packages to Azure DevOps Artifacts (#2462)
- Fix AzDO pipeline publish step by adding allowPackageConflicts: true - Remove GitHub Actions publish-nightly workflow - Update README with new feed URL (no authentication required)
1 parent 9dd5367 commit 70648be

File tree

3 files changed

+16
-70
lines changed

3 files changed

+16
-70
lines changed

.github/workflows/publish-nightly.yml

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

README.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,31 @@ From Visual Studio, you can just add a nuget by searching for `System.Device.Gpi
3434

3535
You can also install the latest nightly builds of the .NET `System.Device.Gpio`, `Iot.Device.Bindings`, and `Iot.Device.Bindings.SkiaSharpAdapter` NuGet packages. These are automatically published from the latest commits to the main branch.
3636

37-
#### GitHub Packages
37+
#### Azure DevOps Feed (No Authentication Required)
3838

39-
To use GitHub Packages, you'll first need to authenticate. Create a Personal Access Token (PAT) with `read:packages` scope from your [GitHub settings](https://github.com/settings/tokens), then configure the source:
39+
Add the nightly feed to your project:
4040

4141
```shell
42-
# Configure the GitHub Packages source (replace YOUR_GITHUB_USERNAME and YOUR_PAT)
43-
dotnet nuget add source --username YOUR_GITHUB_USERNAME --password YOUR_PAT --store-password-in-clear-text --name github-dotnet-iot "https://nuget.pkg.github.com/dotnet/index.json"
42+
# Add the Azure DevOps nightly feed (no authentication required)
43+
dotnet nuget add source --name dotnet-iot-nightly "https://pkgs.dev.azure.com/dotnet/IoT/_packaging/nightly_iot_builds/nuget/v3/index.json"
4444

4545
# Install packages
46-
dotnet add package System.Device.Gpio --source github-dotnet-iot --prerelease
47-
dotnet add package Iot.Device.Bindings --source github-dotnet-iot --prerelease
48-
dotnet add package Iot.Device.Bindings.SkiaSharpAdapter --source github-dotnet-iot --prerelease
46+
dotnet add package System.Device.Gpio --source dotnet-iot-nightly --prerelease
47+
dotnet add package Iot.Device.Bindings --source dotnet-iot-nightly --prerelease
48+
dotnet add package Iot.Device.Bindings.SkiaSharpAdapter --source dotnet-iot-nightly --prerelease
49+
```
50+
51+
Or add to your `NuGet.config`:
52+
53+
```xml
54+
<packageSources>
55+
<add key="dotnet-iot-nightly" value="https://pkgs.dev.azure.com/dotnet/IoT/_packaging/nightly_iot_builds/nuget/v3/index.json" />
56+
</packageSources>
4957
```
5058

5159
### Official Build Status
5260

5361
[![Build Status](https://dev.azure.com/dotnet/IoT/_apis/build/status/dotnet.iot?branchName=main)](https://dev.azure.com/dotnet/IoT/_build/latest?definitionId=179&branchName=main)
54-
[![Nightly Packages](https://github.com/dotnet/iot/actions/workflows/publish-nightly.yml/badge.svg)](https://github.com/dotnet/iot/actions/workflows/publish-nightly.yml)
5562

5663
## Contributing
5764

azure-pipelines.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,4 @@ stages:
215215
command: push
216216
publishVstsFeed: 'IoT/nightly_iot_builds'
217217
packagesToPush: '$(Pipeline.Workspace)/SignedPackages/*.nupkg'
218+
allowPackageConflicts: true

0 commit comments

Comments
 (0)