CI: Pass environment variable to the build job

logging-improvements
Jermolene 2019-01-06 19:08:23 +00:00
rodzic 77d286213f
commit c42eba3308
2 zmienionych plików z 25 dodań i 22 usunięć

Wyświetl plik

@ -5,9 +5,9 @@ stages:
- name: install
if: branch = "master"
- name: test
- name: build
- name: pre-build
if: branch = "master"
- name: pre-deploy
- name: build
if: branch = "master"
- name: deploy
if: branch = "master"
@ -18,9 +18,11 @@ jobs:
script: npm --force install tiddlywiki
- stage: test
script: ./bin/test.sh
- stage: pre-build
script: skip
- stage: build
script: ./bin/build-site.sh
- stage: pre-deploy
script: skip
env:
- TW5_BUILD_TIDDLYWIKI = ./node_modules/tiddlywiki/tiddlywiki.js
- stage: deploy
script: ./bin/deploy-site.sh

Wyświetl plik

@ -56,25 +56,26 @@ echo "<a href='./plugins/tiddlywiki/highlight/index.html'>Moved to http://tiddly
echo "<a href='./plugins/tiddlywiki/markdown/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/markdown/index.html</a>" > $TW5_BUILD_OUTPUT/markdowndemo.html
echo "<a href='./plugins/tiddlywiki/tahoelafs/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tahoelafs/index.html</a>" > $TW5_BUILD_OUTPUT/tahoelafs.html
# ######################################################
# #
# # Core distribution
# #
# ######################################################
######################################################
#
# Core distribution
#
######################################################
# # /index.html Main site
# # /favicon.ico Favicon for main site
# # /static.html Static rendering of default tiddlers
# # /alltiddlers.html Static rendering of all tiddlers
# # /static/* Static single tiddlers
# # /static/static.css Static stylesheet
# # /static/favicon.ico Favicon for static pages
# node $TW5_BUILD_TIDDLYWIKI \
# $TW5_BUILD_MAIN_EDITION \
# --verbose \
# --output $TW5_BUILD_OUTPUT \
# --build favicon static index \
# || exit 1
# /index.html Main site
# /favicon.ico Favicon for main site
# /static.html Static rendering of default tiddlers
# /alltiddlers.html Static rendering of all tiddlers
# /static/* Static single tiddlers
# /static/static.css Static stylesheet
# /static/favicon.ico Favicon for static pages
node $TW5_BUILD_TIDDLYWIKI \
$TW5_BUILD_MAIN_EDITION \
--verbose \
--version \
--output $TW5_BUILD_OUTPUT \
--build favicon static index \
|| exit 1
# # /empty.html Empty
# # /empty.hta For Internet Explorer