same style for console #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jekyll build | |
on: | |
push: | |
paths: | |
- 'source/**' | |
workflow_dispatch: | |
inputs: | |
comment: | |
description: 'Comment' | |
required: false | |
default: 'manual execution' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: compile jekyll site | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup timezone | |
uses: zcong1993/setup-timezone@master | |
with: | |
timezone: Europe/Madrid | |
- name: login | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin | |
- name: Build the site in the jekyll/builder container | |
run: | | |
IMAGE=docker.pkg.github.com/crysol/crysol.github.io/jekyll-patched:3.8 | |
IMAGE=jekyll/jekyll:3.8 | |
docker run \ | |
-v ${{ github.workspace }}/source:/srv/jekyll $IMAGE \ | |
/bin/bash -c "chmod o+rw -R /srv/jekyll && jekyll build --trace -b crysol.org" | |
- name: commit result | |
run: | | |
cp -r source/_site/* . | |
git add . | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -a -m "github action jekyll build" | |
git push | |