TMDbLib/.github/workflows/nuget.yml

36 lines
986 B
YAML
Raw Permalink Normal View History

name: Nuget push (tag)
on:
push:
tags:
- 'v*'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
# We do not need to fetch tags, as we're already at a tagged build - it should be available automatically
- name: Setup .NET
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4
with:
dotnet-version: 7.0.x
- name: Pack
run: dotnet pack -c Release -o Build
- name: ls
run: ls -alh Build/
- name: Nuget push (github)
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
- 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