-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (36 loc) · 1.37 KB
/
build.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
# This is a basic workflow to help you get started with Actions
name: Build Static Pages
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: gh-pages
pull_request:
branches: gh-pages
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
github-pages:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout source branch
uses: actions/checkout@v2
- name: Make build destination directory
run: mkdir $PWD/_site $PWD/.jekyll-cache
- name: Where am I
run: |
echo $PWD
ls $PWD
- name: Jekyll build
run: docker run --rm -t --volume="$PWD:/srv/jekyll" --volume="$PWD/vendor/bundle:/usr/local/bundle" --env JEKYLL_ENV=production jekyll/jekyll:4.2.2 jekyll build
env:
COMPOSE_INTERACTIVE_NO_CLI: 1
- name: Change domain
run: find _site -name "*.html" -type f -exec sed -i "s/https:\/\/baobablab.github.io\/baobab/http:\/\/baobab.cnrs.fr/g" {} \;
- name: Upload built pages
uses: actions/upload-artifact@v4
with:
name: baobab-site
path: _site