Skip to content

update

update #356

Workflow file for this run

name: Jekyll site CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the site in the jekyll/builder container
run: |
# docker run \
# -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
# jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
- name: fix
run: |
sudo apt-get install asciidoctor tree \
&& cd Notes/004-3d-rendering/vulkan/ \
&& ( asciidoctor -a toc=right -n -s -e -R ./ -D ../vulkan_html/ $(find . -name "*.adoc") || true ) \
&& ( cp -r chapters/images ../vulkan_html/chapters/ || true ) \
&& ( cp -r chapters/extensions/images ../vulkan_html/chapters/extensions/ || true ) \
&& ( cp index.md ../vulkan_html/ || true ) \
&& ( cp chapters/index.md ../vulkan_html/chapters/ || true ) \
&& ( cp chapters/extensions/index.md ../vulkan_html/chapters/extensions/ || true ) \
&& ( for file in $(find ../vulkan_html/ -name "*.html"); do mv -- "$file" "${file%.html}.md"; done) \
&& tree
rm -rf ${{ github.workspace }}/.git || true
- name: GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}
uses: crazy-max/[email protected]
with:
domain: github.com
target_branch: ghp1
build_dir: .