Skip to content

add mermaid

add mermaid #270

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages
name: Generate and Deploy Jekyll content to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["jekyll"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# see: https://imagemagick.org/
- name: minify logos
run: |
/bin/bash -c './.github/workflows/minify-pic.sh ./assets/image/logo 32x || true'
- name: build with jekyll
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll \
-v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:4.2.0 /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: "./_site"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
sync:
name: Sync Web Date to Webstack
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/checkout@v3
with:
repository: seven-steven/kanjian.la
path: source
- name: Checkout target reporitory
uses: actions/checkout@v3
with:
repository: seven-steven/webstack-jekyll
path: target
token: ${{ secrets.TOKEN }}
- name: Sync data
run: |
cd source && git checkout jekyll
git log -1 --pretty=format:%s > ../commit-message
cd ..
rsync -a source/_data/sites.yml target/_data/webstack.yml
rsync -a source/assets/image/logo/* target/assets/images/logos/
cd target
git config user.name 'seven-steven'
git config user.email '[email protected]'
git add -A .
git commit -F ../commit-message
git push