Commit ded571b2 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Always have the latest release in the pages

parent 86684086
Pipeline #109654 passed with stages
in 6 minutes and 12 seconds
......@@ -16,3 +16,19 @@ cd build/
|| (cat config.log; exit 1)
make -j 16 install-html || exit 1
make distclean || exit 1
cd .. || exit 1
if test "x$CI_PAGES_URL" = "x"
then
export CI_PAGES_URL="http://play-tarot.frama.io/tarot"
fi
for link in $(wget -O- "$CI_API_V4_URL/projects/$CI_PROJECT_ID/releases" | jq -r '.[0].assets.links[].url')
do
case $link in
*/tarot-*.*.*.tar.gz)
wget -O public/tarot-latest.tar.gz "$link" || exit 1;;
*)
echo "Unknown link '$link'" ; exit 1;;
esac
done
......@@ -22,6 +22,7 @@ tarotinclude_HEADERS += %reldir%/tarot/game_event.h
%canon_reldir%_libtarot_core_game_event_la_SOURCES = \
%reldir%/game_event.c \
%reldir%/tarot/game_event.h \
%reldir%/tarot/game_event_private.h \
%reldir%/tarot/game_event_private_impl.h
%canon_reldir%_libtarot_core_game_event_la_LDFLAGS = \
......
......@@ -44,8 +44,8 @@ $(srcdir)/%reldir%/tarot/mcts_tree_private_impl.h: %reldir%/../tree/gentree-code
$(srcdir)/%reldir%/tarot/mcts_private_impl.h: \
%reldir%/tarot/mcts_tree_private.h \
%reldir%/tarot/mcts_tree_private_impl.h \
src/cards/tarot/cards.h
%reldir%/tarot/mcts_tree_private_impl.h
$(srcdir)/%reldir%/mcts.c: src/cards/tarot/cards.h
$(srcdir)/src/Tarot-@LIBTOOL_CURRENT@.0.gir: %reldir%/tarot/mcts_private_impl.h
EXTRA_DIST += \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment