-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: synced file(s) with prom-client-net/prom-client-tmpl (#51)
- Loading branch information
1 parent
9d50907
commit 9acab41
Showing
2 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
tags: | ||
- "v*" | ||
|
||
jobs: | ||
build: | ||
name: CI Build | ||
uses: ./.github/workflows/build.yml | ||
secrets: inherit | ||
|
||
github: | ||
name: Deploy to GitHub | ||
needs: [build] | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nupkgs | ||
- name: Push to pkg.github.com | ||
run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate | ||
|
||
nuget: | ||
name: Deploy to NuGet | ||
needs: [build] | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: nupkgs | ||
- name: Push to nuget.org | ||
run: dotnet nuget push "**/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_DEPLOY_KEY }} |