2021-03-25 18:50:33 +00:00
|
|
|
name: Nuget push (tag)
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
env:
|
|
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
|
|
DOTNET_NOLOGO: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-10-23 17:38:25 +00:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
2021-03-25 18:50:33 +00:00
|
|
|
# We do not need to fetch tags, as we're already at a tagged build - it should be available automatically
|
|
|
|
|
2023-08-18 17:01:11 +00:00
|
|
|
- name: Setup .NET
|
2024-07-09 19:21:52 +00:00
|
|
|
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
|
2021-03-25 18:50:33 +00:00
|
|
|
with:
|
2023-08-18 17:01:11 +00:00
|
|
|
dotnet-version: 7.0.x
|
2021-03-25 18:50:33 +00:00
|
|
|
|
|
|
|
- name: Pack
|
|
|
|
run: dotnet pack -c Release -o Build
|
|
|
|
|
|
|
|
- name: ls
|
|
|
|
run: ls -alh Build/
|
|
|
|
|
|
|
|
- name: Nuget push (github)
|
2022-03-19 12:24:53 +00:00
|
|
|
run: dotnet nuget push --no-symbols --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" Build/*.nupkg
|
2021-03-25 18:50:33 +00:00
|
|
|
|
|
|
|
- name: Nuget push
|
2023-12-02 22:58:02 +00:00
|
|
|
run: dotnet nuget push --skip-duplicate -k ${{secrets.NUGET_APIKEY}} -s https://api.nuget.org/v3/index.json Build/*.nupkg
|