1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

CI: Pass environment variable to the build job

This commit is contained in:
Jermolene 2019-01-06 19:08:23 +00:00
parent 77d286213f
commit c42eba3308
2 changed files with 25 additions and 22 deletions

View File

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

View File

@ -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/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 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 # /index.html Main site
# # /favicon.ico Favicon for main site # /favicon.ico Favicon for main site
# # /static.html Static rendering of default tiddlers # /static.html Static rendering of default tiddlers
# # /alltiddlers.html Static rendering of all tiddlers # /alltiddlers.html Static rendering of all tiddlers
# # /static/* Static single tiddlers # /static/* Static single tiddlers
# # /static/static.css Static stylesheet # /static/static.css Static stylesheet
# # /static/favicon.ico Favicon for static pages # /static/favicon.ico Favicon for static pages
# node $TW5_BUILD_TIDDLYWIKI \ node $TW5_BUILD_TIDDLYWIKI \
# $TW5_BUILD_MAIN_EDITION \ $TW5_BUILD_MAIN_EDITION \
# --verbose \ --verbose \
# --output $TW5_BUILD_OUTPUT \ --version \
# --build favicon static index \ --output $TW5_BUILD_OUTPUT \
# || exit 1 --build favicon static index \
|| exit 1
# # /empty.html Empty # # /empty.html Empty
# # /empty.hta For Internet Explorer # # /empty.hta For Internet Explorer