Skip to content

Commit

Permalink
Wrap up?
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Dec 28, 2024
1 parent 1beee6b commit 8885055
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 2 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions .github/actions/publish-artifacts/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,9 @@ runs:
name: deployables-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/deployables
if: always()
- name: 📢 Upload deployables-LKG
uses: actions/upload-artifact@v4
with:
name: deployables-LKG-${{ runner.os }}
path: ${{ runner.temp }}/_artifacts/deployables-LKG
if: always()
File renamed without changes.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ jobs:
- name: 📢 Publish artifacts
uses: ./.github/actions/publish-artifacts
if: cancelled() == false
- name: 📦 Push CI package
shell: pwsh
run: |
if ('${{ secrets.AZP_TOKEN }}') {
dotnet nuget add source https://pkgs.dev.azure.com/andrewarnott/OSS/_packaging/PublicCI/nuget/v3/index.json -n publicCI -u andrewarnott -p ${{ secrets.AZP_TOKEN }} --store-password-in-clear-text
dotnet nuget push ${{ runner.temp }}/_artifacts/deployables/*.nupkg -s publicCI -k x
dotnet nuget push ${{ runner.temp }}/_artifacts/deployables-LKG/*.nupkg -s publicCI -k x
}
if: success() && runner.os == 'Linux' && github.event_name != 'pull_request'
continue-on-error: true
- name: 📢 Publish code coverage results to codecov.io
run: ./tools/publish-CodeCov.ps1 -CodeCovToken "${{ env.codecov_token }}" -PathToCodeCoverage "${{ runner.temp }}/_artifacts/coverageResults" -Name "${{ runner.os }} Coverage Results" -Flags "${{ runner.os }}"
shell: pwsh
Expand Down
28 changes: 27 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
release:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- name: ⚙️ Initialization
shell: pwsh
run: |
Expand Down Expand Up @@ -67,11 +69,26 @@ jobs:
- name: 🔻 Download deployables artifacts
uses: actions/download-artifact@v4
with:
name: deployables-Linux
name: deployables-Windows
path: ${{ runner.temp }}/deployables
run-id: ${{ steps.findrunid.outputs.runid }}
github-token: ${{ github.token }}

- name: 🔏 Code sign
shell: pwsh
run: >
dotnet tool install --tool-path obj SignClient
obj/SignClient sign
--baseDirectory '${{ runner.temp }}/deployables'
--input '**/*'
--config '${{ github.workspace }}/.github/SignClient.json'
--filelist '${{ github.workspace }}/.github/signfiles.txt'
--user '${{ secrets.CODESIGN_USERNAME }}'
--secret '${{ secrets.CODESIGN_SECRET }}'
--name 'Nerdbank.GitVersioning'
--descriptionUrl 'https://github.com/dotnet/Nerdbank.GitVersioning'
- name: 💽 Upload artifacts to release
shell: pwsh
if: ${{ github.event.release.assets_url }} != ''
Expand All @@ -86,3 +103,12 @@ jobs:
- name: 🚀 Push NuGet packages
run: dotnet nuget push ${{ runner.temp }}/deployables/*.nupkg --source https://api.nuget.org/v3/index.json -k '${{ secrets.NUGET_API_KEY }}'
if: ${{ env.NUGET_API_KEY_DEFINED == 'true' }}

- name: 🚀 Push NPM packages
run: |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_API_KEY }}
Get-ChildItem '${{ runner.temp }}/deployables/*.tgz' |% {
npm publish $_ --registry=https://registry.npmjs.org/
}
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Nerdbank.GitVersioning

[![Build Status](https://dev.azure.com/andrewarnott/OSS/_apis/build/status/Nerdbank.GitVersioning)](https://dev.azure.com/andrewarnott/OSS/_build/latest?definitionId=18)
[![🏭 Build](https://github.com/dotnet/Nerdbank.GitVersioning/actions/workflows/build.yml/badge.svg)](https://github.com/dotnet/Nerdbank.GitVersioning/actions/workflows/build.yml)
[![NuGet package](https://img.shields.io/nuget/v/Nerdbank.GitVersioning.svg)](https://nuget.org/packages/Nerdbank.GitVersioning)
[![NuGet downloads](https://img.shields.io/nuget/dt/Nerdbank.GitVersioning.svg)](https://nuget.org/packages/Nerdbank.GitVersioning)
[![NPM package](https://img.shields.io/npm/v/nerdbank-gitversioning.svg)](https://www.npmjs.com/package/nerdbank-gitversioning)
Expand Down

0 comments on commit 8885055

Please sign in to comment.