This repository was archived by the owner on Feb 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +53
-11
lines changed Expand file tree Collapse file tree 4 files changed +53
-11
lines changed Original file line number Diff line number Diff line change 1
- DOCTOOLS_IMAGE_VERSION = latest
2
- PROJECT = doctools
3
- LANGUAGE = en
4
- SOURCE_DIR = site
1
+ # ##############################################
2
+ # Project environment variables #
3
+ # Uncomment the line to use and set the value #
4
+ # ##############################################
5
5
6
- AWS_S3_BUCKET = docshosting
7
- AWS_REGION = us-east-2
6
+ # # Docker compose variables
7
+ # DOCTOOLS_IMAGE_VERSION # Docker compose image. Default to 'latest'.
8
+
9
+ # # MkDocs variables
10
+ # DEBUG=true # uncomment to output debug infos in HTML source code. Requires MINIFY=false
11
+ # VERSION=1.2.3 # uncomment to force a version number on your local preview
12
+ # LANGUAGE # Two letters language code. Default language is 'en'
13
+ # PREBUILD_INDEX=false # uncomment to speedup your preview build (will slow down searches)
14
+ # MINIFY=false # uncomment to prevent HTML/CSS/JS code to be minified. Useful for debug.
Original file line number Diff line number Diff line change 21
21
with :
22
22
fetch-depth : 0 # Required for mkdocs to be able to display pages last update info
23
23
24
+ - name : set environment vars from .env file
25
+ uses : c-py/action-dotenv-to-setenv@a6380f4d905f42adb7c065db63e6d66d75b971ad # v3
26
+ with :
27
+ env-file : ' .env'
28
+
29
+ - name : Set non empty LANGUAGE env
30
+ shell : sh
31
+ run : |
32
+ echo "LANGUAGE=${LANGUAGE:-en}" >> $GITHUB_ENV
33
+
24
34
- name : Publish latest version to AWS
25
35
uses : ConsenSys/doctools.action-builder/actions/latest-publish@main
26
36
with :
27
37
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
28
38
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
29
- SITE_URL_BASE : ${{ secrets.SITE_URL_BASE }}
39
+ SITE_ROOT : ${{ secrets.SITE_ROOT }} # must point at project level. No lang. No version.
40
+ AWS_REGION : ${{ secrets.AWS_REGION }}
41
+ AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
42
+ PROJECT : ${{ secrets.PROJECT }}
43
+ LANGUAGE : ${{ env.LANGUAGE }}
Original file line number Diff line number Diff line change @@ -15,10 +15,17 @@ jobs:
15
15
with :
16
16
fetch-depth : 0 # Required for mkdocs to be able to display pages last update info
17
17
18
- - uses : actions/checkout@v2
18
+ - name : set environment vars from .env file
19
+ uses : c-py/action-dotenv-to-setenv@a6380f4d905f42adb7c065db63e6d66d75b971ad # v3
19
20
with :
20
- repository : ConsenSys/doctools.action-builder
21
- path : doctools
21
+ env-file : ' .env'
22
+
23
+ - name : Set non empty LANGUAGE env
24
+ shell : sh
25
+ run : |
26
+ echo "LANGUAGE=${LANGUAGE:-en}" >> $GITHUB_ENV
22
27
23
28
- name : Build and publish PR preview
24
29
uses : ConsenSys/doctools.action-builder/actions/pr-preview-publish@main
30
+ with :
31
+ LANGUAGE : ${{ env.LANGUAGE }}
Original file line number Diff line number Diff line change 19
19
with :
20
20
fetch-depth : 0 # Required for mkdocs to be able to display pages last update info
21
21
22
+ - name : set environment vars from .env file
23
+ uses : c-py/action-dotenv-to-setenv@a6380f4d905f42adb7c065db63e6d66d75b971ad # v3
24
+ with :
25
+ env-file : ' .env'
26
+
27
+ - name : Set non empty LANGUAGE env
28
+ shell : sh
29
+ run : |
30
+ echo "LANGUAGE=${LANGUAGE:-en}" >> $GITHUB_ENV
31
+
22
32
- name : Publish release version to AWS
23
33
uses : ConsenSys/doctools.action-builder/actions/release-publish@main
24
34
with :
25
35
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
26
36
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
27
- SITE_URL_BASE : ${{ secrets.SITE_URL_BASE }}
37
+ SITE_ROOT : ${{ secrets.SITE_ROOT }} # must point at project level. No lang. No version.
38
+ AWS_REGION : ${{ secrets.AWS_REGION }}
39
+ AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET }}
40
+ PROJECT : ${{ secrets.PROJECT }}
41
+ LANGUAGE : ${{ env.LANGUAGE }}
You can’t perform that action at this time.
0 commit comments