Skip to content

Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /API #26

Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /API

Bump SixLabors.ImageSharp from 3.1.4 to 3.1.5 in /API #26

name: Nightly Workflow
on:
push:
pull_request:
branches: [ develop ]
env:
DOTNET_VERSION: '8.0.x'
jobs:
bump:
name: Upload Kavita.Common for Version Bump
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/upload-artifact@v4
with:
name: csproj
path: Kavita.Common/Kavita.Common.csproj
version:
name: Bump version
needs: [ bump ]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump versions
uses: majora2007/[email protected]
with:
version_files: Kavita.Common/Kavita.Common.csproj
github_token: ${{ secrets.REPO_GHA_PAT }}
version_mask: "0.0.0.1"
develop:
name: Build Nightly
needs: [ bump, version ]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/develop'
permissions:
packages: write
contents: read
steps:
- name: Check Out Repo
uses: actions/checkout@v4
with:
ref: develop
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 20
node-version-file: UI/Web/package.json
cache: 'npm'
cache-dependency-path: UI/Web/package-lock.json
- run: |
cd UI/Web
npm ci
- run: |
cd UI/Web/
npm run prod
- run: |
cd UI/Web
rsync -a dist/ ../../API/wwwroot/
- name: Get csproj Version
uses: kzrnm/get-net-sdk-project-versions-action@v2
id: get-version
with:
proj-path: Kavita.Common/Kavita.Common.csproj
- name: Parse Version
run: |
version='${{steps.get-version.outputs.assembly-version}}'
echo "VERSION=$version" >> $GITHUB_OUTPUT
id: parse-version
- name: Echo csproj version
run: echo "${{steps.get-version.outputs.assembly-version}}"
compile:
name: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- uses: actions/[email protected]
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
restore-keys: |
${{ runner.os }}-nuget
- name: Install Swashbuckle CLI
run: dotnet tool install -g Swashbuckle.AspNetCore.Cli
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build Kavita.sln -p:Configuration=Release -p:Platform="Any CPU" -p:RuntimeIdentifiers=linux-x64
- name: Didibreakit?
run: echo "If we get to this point we can add the other actioins for the different builds"