Skip to content
Snippets Groups Projects
Commit e9227a8c authored by Dmytro Bogatov's avatar Dmytro Bogatov :two_hearts:
Browse files

Add export-arxiv.

parent a5f020a6
No related branches found
No related tags found
No related merge requests found
export-arxiv:
stage: release
image: dbogatov/docker-images:alpine-extras-latest
variables:
EXPORT_DIR: export-arxiv
script:
- rm -rf $LATEX_DIST
- mkdir $EXPORT_DIR
- cp -r $LATEX_SRC/* $EXPORT_DIR
- cp $LATEX_DEFAULT_JOB.bbl $EXPORT_DIR/main.bbl
- zip -r $EXPORT_DIR.zip $EXPORT_DIR
dependencies:
- build
artifacts:
paths:
- $EXPORT_DIR.zip
rules:
- if: "$DISABLE_REGULAR_PIPELINE"
when: never
- when: on_success
tags:
- docker
......@@ -13,6 +13,7 @@ build:
do
echo Building for "build.sh $arg"
bash ./$LATEX_BUILD/build.sh $arg
cp $LATEX_DIST/*.bbl .
done
- PAGES=$(wget -q -O - https://git.dbogatov.org/templates/ci-snippets/raw/master/page-count.sh | bash /dev/stdin ${PWD}/$LATEX_DIST/)
- |
......@@ -22,6 +23,7 @@ build:
expire_in: 30 min
paths:
- "$LATEX_DIST/*.pdf"
- $LATEX_DEFAULT_JOB.bbl
reports:
dotenv: pages-count.env
rules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment