name: '🏗️ Build Plugin' on: push: branches: - master paths-ignore: - '**/*.md' pull_request: branches: - master paths-ignore: - '**/*.md' workflow_dispatch: jobs: build: runs-on: ubuntu-22.04 container: image: gitea.tourolle.paris/dtourolle/jellypod-builder:latest steps: - name: Checkout repository uses: actions/checkout@v4 - name: Restore dependencies run: dotnet restore Jellyfin.Plugin.Jellypod.sln - name: Build solution run: dotnet build Jellyfin.Plugin.Jellypod.sln --configuration Release --no-restore --no-self-contained - name: Run tests run: dotnet test Jellyfin.Plugin.Jellypod.sln --no-build --configuration Release --verbosity normal - name: Build Jellyfin Plugin id: jprm run: | mkdir -p artifacts jprm --verbosity=debug plugin build . # Find the generated zip file ARTIFACT=$(find . -name "*.zip" -type f -print -quit) echo "artifact=${ARTIFACT}" >> $GITHUB_OUTPUT echo "Found artifact: ${ARTIFACT}" - name: Upload build artifact uses: actions/upload-artifact@v3 with: name: jellypod-plugin path: ${{ steps.jprm.outputs.artifact }} retention-days: 30 if-no-files-found: error