mirror of
https://github.com/jellyfin/TMDbLib.git
synced 2024-11-27 07:40:24 +00:00
a0785e50ae
Update Update Update Alt Alt2 Skipsies
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: Generic Build
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
env:
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
DOTNET_NOLOGO: true
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 50
|
|
- run: git fetch --tags
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 5.0.x
|
|
|
|
- name: Restore dependencies
|
|
run: dotnet restore
|
|
|
|
- name: Build
|
|
run: dotnet build --no-restore
|
|
|
|
- name: Test
|
|
run: "[ -f .ci-skip-tests ] && echo 'Skipping tests' || dotnet test --no-build --verbosity normal"
|
|
|
|
- name: Pack
|
|
if: github.ref == 'refs/heads/master'
|
|
run: dotnet pack -c Debug -o Build
|
|
|
|
- name: "Github packages: Nuget push"
|
|
if: github.ref == 'refs/heads/master'
|
|
run: dotnet nuget push --no-symbols 1 --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" Build/*.nupkg
|
|
|
|
- name: "Github packages: Cleanup"
|
|
if: github.ref == 'refs/heads/master'
|
|
uses: stripethree/gpr-janitor@dist
|
|
with:
|
|
dry-run: false
|
|
keep-versions: 25
|
|
min-age-days: 14
|
|
versions-to-fetch: 20
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|