Bugfix/workflow test (#333)

* adding debugging and path change

* more logging and change to rsync
This commit is contained in:
Robbie Davis 2021-06-25 12:51:25 -04:00 committed by GitHub
parent 50bdb715b7
commit 0533de7420
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -25,16 +25,23 @@ jobs:
with: with:
node-version: '14' node-version: '14'
- run: | - run: |
echo 'Checking folder structure'
ls -l
cd Kavita-webui/ || exit cd Kavita-webui/ || exit
echo 'Installing web dependencies' echo 'Installing web dependencies'
npm install npm install
echo 'Building UI' echo 'Building UI'
npm run prod npm run prod
echo 'Checking dist folder for compiling integrity' echo 'Checking dist folder for compiling integrity'
ls -l dist ls -l dist
echo 'Copying back to Kavita wwwroot' echo 'Copying back to Kavita wwwroot'
mkdir ../Kavita/API/wwwroot mkdir ../API/wwwroot
cp -r dist/* ../Kavita/API/wwwroot rsync -a dist/ ../API/wwwroot/
echo 'Checking Kavita wwwroot for copying integrity' echo 'Checking Kavita wwwroot for copying integrity'
ls -l ../Kavita/API/wwwroot ls -l ../Kavita/API/wwwroot
cd ../ || exit cd ../ || exit

View File

@ -34,6 +34,9 @@ Package()
local runtime="$2" local runtime="$2"
local lOutputFolder=../_output/"$runtime"/Kavita local lOutputFolder=../_output/"$runtime"/Kavita
echo "Integrity check on root folder"
ls -l
ProgressStart "Creating $runtime Package for $framework" ProgressStart "Creating $runtime Package for $framework"
# TODO: Use no-restore? Because Build should have already done it for us # TODO: Use no-restore? Because Build should have already done it for us