2019-12-18 05:13:02 +00:00
|
|
|
image: dmoonfire/mfgames-writing-js:2.0.0
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- publish
|
|
|
|
|
|
|
|
publish:
|
|
|
|
stage: publish
|
|
|
|
only: [master]
|
|
|
|
tags: [docker]
|
|
|
|
script:
|
|
|
|
# Install the basic requirements including the free fonts.
|
|
|
|
- npm ci
|
|
|
|
|
|
|
|
# Verify that the commits are good.
|
|
|
|
- npx commitlint --from=$CI_BUILD_BEFORE_SHA
|
|
|
|
|
|
|
|
# We need the cover from the general repository.
|
|
|
|
- mkdir -p build/repos
|
|
|
|
- git clone https://oauth2:$fedranAccessKey@gitlab.com/fedran/fedran-covers.git build/repos/fedran-covers
|
|
|
|
|
|
|
|
# Trigger the release if needed.
|
|
|
|
- npx semantic-release
|
|
|
|
|
2019-12-18 05:15:30 +00:00
|
|
|
# Build the files.
|
2020-01-02 06:06:28 +00:00
|
|
|
- npm run upload
|
2019-12-18 05:13:02 +00:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- "*.pdf"
|
|
|
|
- "*.epub"
|
|
|
|
- "*.mobi"
|
|
|
|
- "*.docx"
|
|
|
|
- "*.html"
|