Skip to content

Add CSS variable to valid.css test file #15

Add CSS variable to valid.css test file

Add CSS variable to valid.css test file #15

Workflow file for this run

name: Publish
on:
push:
tags: [v*]
workflow_dispatch:
jobs:
site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
mkdir -p ./artifact/site
echo -e "theme: jekyll-theme-cayman" > ./artifact/site/_config.yml
echo -e "---\nlayout: default\ntitle: Home\n---\n" > ./artifact/site/index.md
echo "$(sed -r s"/(\{%[^%]+%\})/{% raw %}\1{% endraw %}/g" ./README.md)" >> ./artifact/site/index.md
mkdir -p ./artifact/site/installation
echo -e "---\nlayout: default\ntitle: Installation\n---\n" > ./artifact/site/installation/index.md
echo "$(sed -r s"/(\{%[^%]+%\})/{% raw %}\1{% endraw %}/g" ./docs/installation.md)" >> ./artifact/site/installation/index.md
mkdir -p ./artifact/site/usage
echo -e "---\nlayout: default\ntitle: Usage\n---\n" > ./artifact/site/usage/index.md
echo "$(sed -r s"/(\{%[^%]+%\})/{% raw %}\1{% endraw %}/g" ./docs/usage.md)" >> ./artifact/site/usage/index.md
- uses: actions/upload-artifact@v3
with:
name: artifact
path: ./artifact
phpdoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 📃 Generate PHP documentation
run: |
docker run --rm -v $(pwd):/data phpdoc/phpdoc:3 -d ./src -t ./artifact/site/phpdoc
- uses: actions/upload-artifact@v3
with:
name: artifact
path: ./artifact
build_and_deploy:
runs-on: ubuntu-latest
needs: [site, phpdoc]
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: ./artifact
- uses: peaceiris/actions-gh-pages@v3.9.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./artifact/site
enable_jekyll: true