mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Merged
This commit is contained in:
commit
534c2d2065
15
.github/workflows/nightly-docker.yml
vendored
15
.github/workflows/nightly-docker.yml
vendored
@ -25,15 +25,24 @@ jobs:
|
||||
with:
|
||||
node-version: '14'
|
||||
- run: |
|
||||
echo 'Removing old wwwroot'
|
||||
rm -rf API/wwwroot/*
|
||||
echo 'Checking folder structure'
|
||||
ls -l
|
||||
|
||||
cd Kavita-webui/ || exit
|
||||
echo 'Installing web dependencies'
|
||||
npm install
|
||||
|
||||
echo 'Building UI'
|
||||
npm run prod
|
||||
|
||||
echo 'Checking dist folder for compiling integrity'
|
||||
ls -l dist
|
||||
|
||||
echo 'Copying back to Kavita wwwroot'
|
||||
cp -r dist/* ../API/wwwroot
|
||||
rsync -a dist/ ../API/wwwroot/
|
||||
|
||||
echo 'Checking Kavita wwwroot for copying integrity'
|
||||
ls -l ../API/wwwroot
|
||||
cd ../ || exit
|
||||
|
||||
- name: Compile dotnet app
|
||||
|
5
.github/workflows/stable-docker.yml
vendored
5
.github/workflows/stable-docker.yml
vendored
@ -32,8 +32,13 @@ jobs:
|
||||
npm install
|
||||
echo 'Building UI'
|
||||
npm run prod
|
||||
echo 'Checking dist folder for compiling integrity'
|
||||
ls -l dist
|
||||
echo 'Copying back to Kavita wwwroot'
|
||||
mkdir ../API/wwwroot
|
||||
cp -r dist/* ../API/wwwroot
|
||||
echo 'Checking Kavita wwwroot for copying integrity'
|
||||
ls -l ../API/wwwroot
|
||||
cd ../ || exit
|
||||
|
||||
- name: Compile dotnet app
|
||||
|
@ -16,7 +16,7 @@ namespace API.Extensions
|
||||
{
|
||||
services.AddHttpClient<StatsApiClient>(client =>
|
||||
{
|
||||
client.BaseAddress = new Uri("https://kavitastats.majora2007.duckdns.org");
|
||||
client.BaseAddress = new Uri("https://stats.kavitareader.com");
|
||||
client.DefaultRequestHeaders.Add("api-key", "MsnvA2DfQqxSK5jh");
|
||||
});
|
||||
|
||||
|
@ -34,6 +34,9 @@ Package()
|
||||
local runtime="$2"
|
||||
local lOutputFolder=../_output/"$runtime"/Kavita
|
||||
|
||||
echo "Integrity check on root folder"
|
||||
ls -l
|
||||
|
||||
ProgressStart "Creating $runtime Package for $framework"
|
||||
|
||||
# TODO: Use no-restore? Because Build should have already done it for us
|
||||
@ -42,9 +45,15 @@ Package()
|
||||
echo dotnet publish -c Release --no-restore --self-contained --runtime $runtime -o "$lOutputFolder" --framework $framework
|
||||
dotnet publish -c Release --no-restore --self-contained --runtime $runtime -o "$lOutputFolder" --framework $framework
|
||||
|
||||
echo "Integrity check on API wwwroot folder"
|
||||
ls -l "$lOutputFolder"/wwwroot
|
||||
|
||||
echo "Renaming API -> Kavita"
|
||||
mv "$lOutputFolder"/API "$lOutputFolder"/Kavita
|
||||
|
||||
echo "Integrity check on Kavita wwwroot folder"
|
||||
ls -l "$lOutputFolder"/wwwroot
|
||||
|
||||
echo "Copying Install information"
|
||||
cp ../INSTALL.txt "$lOutputFolder"/README.txt
|
||||
|
||||
@ -69,8 +78,10 @@ BuildUI()
|
||||
npm install
|
||||
echo 'Building UI'
|
||||
npm run prod
|
||||
ls -l dist
|
||||
echo 'Copying back to Kavita wwwroot'
|
||||
cp -r dist/* ../Kavita/API/wwwroot
|
||||
ls -l ../Kavita/API/wwwroot
|
||||
cd ../Kavita/ || exit
|
||||
ProgressEnd 'Building UI'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user