Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push packages to private feed. #16

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
build:
name: Build
runs-on: windows-latest
runs-on: ubuntu-latest

env:
OFFICIAL_BUILD: 'True'
Expand All @@ -27,14 +27,27 @@ jobs:
with:
dotnet-version: 3.1.300

- name: Verify files contain copyright header
run: .\scripts\verification\Verify-LicenceHeader.ps1 -Target .\src -LicenseHeaderPath .\scripts\verification\LicenseHeader.txt -Extensions *.xaml,*.xml,*.cs,*.ps1 -AddIfAbsent $false
# - name: Verify files contain copyright header
# run: .\scripts\verification\Verify-LicenceHeader.ps1 -Target .\src -LicenseHeaderPath .\scripts\verification\LicenseHeader.txt -Extensions *.xaml,*.xml,*.cs,*.ps1 -AddIfAbsent $false

- name: Restore dependencies
run: dotnet restore

- name: Build
run: dotnet build --no-restore

- name: Test
run: dotnet test --no-build --verbosity normal
run: dotnet build --no-restore

- name: Build NuGet packages
run: dotnet pack --no-restore --output ./out

- name: Publish NuGet packages to Azure Artifacts
run: |
# https://github.com/NuGet/Home/issues/7792
dotnet nuget add source "https://pkgs.dev.azure.com/aamallad/test/_packaging/test12/nuget/v3/index.json" \
--name ado \
--username unused \
--password ${{ secrets.AAMALLAD_FEED_PAT }} \
--store-password-in-clear-text
dotnet nuget push "./out/*.nupkg" \
--skip-duplicate \
--source ado \
--api-key unused