diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ad74548254fa9a0f4d82334f8b9463b1da05ed0e..d0659c34acd826dc173cb96a3e8c344bfc32f7ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -23,13 +23,19 @@ test: - rebar3 as test do eunit --cover --dir=test, cover --verbose - coverage.escript _build/test/cover/eunit.coverdata -publish: +hex_publish: stage: publish only: - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version script: - rebar3 update - - yes | rebar3 hex publish + - echo "Y" | rebar3 hex publish + +aws_publish: + stage: publish + only: + - /^\d+[.]\d+[.]\d+$/ # Only publish HEAD tagged with semantic version + script: - rebar3 edoc - aws s3 cp doc s3://s3.erlang.ninja/gurka/$CI_BUILD_REF_NAME/ --recursive - rebar3 as production do tar