Skip to content

Fixed: Missing argument for FromDownloadClient #51

Fixed: Missing argument for FromDownloadClient

Fixed: Missing argument for FromDownloadClient #51

Workflow file for this run

name: Build Plugin
on:
push:
branches:
- master
tags-ignore:
- '**'
pull_request:
workflow_dispatch:
permissions:
contents: write
env:
# Stop wasting time caching packages
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
# Disable sending usage data to Microsoft
DOTNET_CLI_TELEMETRY_OPTOUT: true
PLUGIN_NAME: Lidarr.Plugin.Deemix
PLUGIN_VERSION: 1.0.1.${{ github.run_number }}
MINIMUM_LIDARR_VERSION: 2.2.4.4129
DOTNET_VERSION: 6.0.417
jobs:
build:
strategy:
matrix:
framework: [ net6.0 ]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Create global.json
run: |
echo '{"sdk":{"version": "${{ env.DOTNET_VERSION }}"}}' > ./global.json
- name: Generate metadata
id: gen_meta
run: |
echo "branch=${GITHUB_REF#refs/heads/}" | tr '/' '-' >> $GITHUB_OUTPUT
- name: Update Version Info
run: |
sed -i'' -e "s/<AssemblyVersion>[0-9.*]\+<\/AssemblyVersion>/<AssemblyVersion>$PLUGIN_VERSION<\/AssemblyVersion>/g" src/Directory.Build.props
sed -i'' -e "s/<AssemblyConfiguration>[\$()A-Za-z-]\+<\/AssemblyConfiguration>/<AssemblyConfiguration>${{ steps.gen_meta.outputs.branch }}<\/AssemblyConfiguration>/g" src/Directory.Build.props
sed -i'' -e "s/<AssemblyVersion>[0-9.*]\+<\/AssemblyVersion>/<AssemblyVersion>$MINIMUM_LIDARR_VERSION<\/AssemblyVersion>/g" src/Lidarr/src/Directory.Build.props
- name: Build
run: dotnet publish src/*.sln -c Release -f ${{ matrix.framework }}
- name: Upload net core
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.framework }}
path: ./${{ env.PLUGIN_NAME }}.${{ matrix.framework }}.zip
publish:
needs: build
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Download Artifact (net6.0)
uses: actions/download-artifact@v2
with:
name: net6.0
- uses: meeDamian/github-release@2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ env.PLUGIN_VERSION }}
commitish: ${{ env.GITHUB_SHA }}
name: Deemix Plugin
body: >
Lidarr plugin to add Deemix support
Minimum Lidarr Version: ${{ env.MINIMUM_LIDARR_VERSION }}
draft: true
prerelease: true
files: >
${{ env.PLUGIN_NAME }}.net6.0.zip
gzip: false