Commit 5fe4ef7c authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Publie la librairie sur pages.

Showing with 32 additions and 10 deletions
+32 -10
build:
tags: [docker]
image: ubuntu
before_script:
- apt-get update -yqq >/dev/null
- apt-get install -yqq curl wget >/dev/null
- curl -sSL https://github.com/thought-machine/please/releases/download/v14.3.5/please_14.3.5_linux_amd64.tar.gz | tar xz -C /usr/local/bin --strip-components=1
include:
- local: '.gitlab/please-build-ci.yml'
reveal.js:
extends: .please-build
stage: build
script:
- please build --noupdate -p :reveal.js
- mv plz-out/gen/reveal.js reveal.js
......@@ -12,7 +11,15 @@ build:
name: reveal.js-$CI_COMMIT_REF_SLUG
paths:
- reveal.js/
cache:
key: "plz-cache-$CI_COMMIT_REF_SLUG"
pages:
stage: deploy
tags: [docker]
image: busybox
dependencies: [reveal.js]
script:
- mv reveal.js public
artifacts:
name: pages
paths:
- .plz-cache
- public
.please-build:
tags: [docker]
image: ubuntu
variables:
PLEASE_VERSION: "14.3.5"
before_script:
- apt-get update -yqq >/dev/null
- apt-get install -yqq curl wget >/dev/null
- curl -sSL https://github.com/thought-machine/please/releases/download/v${PLEASE_VERSION}/please_${PLEASE_VERSION}_linux_amd64.tar.gz | tar xz -C /usr/local/bin --strip-components=1
script:
- please build --noupdate -p :${CI_JOB_NAME}
cache:
key: "plz-cache-$CI_COMMIT_REF_SLUG"
paths:
- .plz-cache
Supports Markdown
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