-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
53 lines (53 loc) · 2.73 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
branches:
only:
- main
language: python
python:
- "3.7"
services:
- docker
before_install:
- docker pull particule/revealjs-builder:stable
- docker pull particule/wkhtmltopdf:stable
- docker pull particule/markdown-pdf:stable
- docker pull particule/grip:stable
- pip install -U awscli
script:
- for dir in styles/* ; do if [ -d "$dir" ] ; then aws s3 cp "$dir".css s3://AWS_S3_BUCKET/formations/revealjs/css/theme/
&& aws s3 cp "$(basename $dir)" s3://$AWS_S3_BUCKET/formations/revealjs/css/theme/"$(basename
$dir)" --recursive ; fi ; done
- "/bin/bash -x build.sh -l fr"
- "/bin/bash -x build.sh -l en"
deploy:
- provider: s3
edge: true
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: "$AWS_S3_BUCKET"
region: "$AWS_DEFAULT_REGION"
acl: public_read
local_dir: output-html
upload-dir: formations
- provider: s3
edge: true
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: "$AWS_S3_BUCKET"
region: "$AWS_DEFAULT_REGION"
acl: public_read
local_dir: images
upload-dir: formations/images
- provider: s3
edge: true
access_key_id: "$AWS_ACCESS_KEY_ID"
secret_access_key: "$AWS_SECRET_ACCESS_KEY"
bucket: "$AWS_S3_BUCKET"
region: "$AWS_DEFAULT_REGION"
acl: public_read
local_dir: output-pdf
upload-dir: formations/pdf
notifications:
slack:
rooms:
- secure: X7Ji5bYtrLgNy0OsaKs9Ch01KyyuPX0SoBK64AUET72qg3iEfOcSM+MWF2u/Sao4R5kXbUF+Z+op78tC6/o9otyjJdI/xH+4jIOxzWjgyrZNc61kwd8/9MG2Fh2OsJkplA0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