Skip to content

CC BY 3.0 applies to HTML5 UP only #32

CC BY 3.0 applies to HTML5 UP only

CC BY 3.0 applies to HTML5 UP only #32

Workflow file for this run

# 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