Improves and clarifies the release distribution steps. No changes to static copying

This commit is contained in:
Trenton H 2023-01-30 10:07:02 -08:00
parent 9b3ec22beb
commit 8fea4c00ad

View File

@ -429,20 +429,46 @@ jobs:
- -
name: Move files name: Move files
run: | run: |
mkdir dist echo "Making dist folders"
mkdir dist/paperless-ngx for directory in dist \
mkdir dist/paperless-ngx/scripts dist/paperless-ngx \
cp .dockerignore .env Dockerfile Pipfile Pipfile.lock requirements.txt LICENSE README.md dist/paperless-ngx/ dist/paperless-ngx/scripts;
cp paperless.conf.example dist/paperless-ngx/paperless.conf do
cp gunicorn.conf.py dist/paperless-ngx/gunicorn.conf.py mkdir --verbose --parents ${directory}
cp -r docker/ dist/paperless-ngx/docker done
cp scripts/*.service scripts/*.sh scripts/*.socket dist/paperless-ngx/scripts/
cp -r src/ dist/paperless-ngx/src echo "Copying basic files"
cp -r docs/_build/html/ dist/paperless-ngx/docs for file_name in .dockerignore \
mv static dist/paperless-ngx .env \
Dockerfile \
Pipfile \
Pipfile.lock \
requirements.txt \
LICENSE \
README.md \
paperless.conf.example \
gunicorn.conf.py
do
cp --verbose ${file_name} dist/paperless-ngx/
done
mv --verbose dist/paperless-ngx/paperless.conf.example paperless.conf
echo "Copying Docker related files"
cp --recursive docker/ dist/paperless-ngx/docker
echo "Copying startup scripts"
cp --verbose scripts/*.service scripts/*.sh scripts/*.socket dist/paperless-ngx/scripts/
echo "Copying source files"
cp --recursive src/ dist/paperless-ngx/src
echo "Copying documentation"
cp --recursive docs/_build/html/ dist/paperless-ngx/docs
mv --verbose static dist/paperless-ngx
- -
name: Make release package name: Make release package
run: | run: |
echo "Creating release archive"
cd dist cd dist
tar -cJf paperless-ngx.tar.xz paperless-ngx/ tar -cJf paperless-ngx.tar.xz paperless-ngx/
- -