fix: escaped markdown in team section #402
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: 'Deploy docs and benchmarks to GitHub pages' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout benchmark repo | |
uses: actions/checkout@v2 | |
with: | |
repository: blinkk/amagaki-benchmark | |
path: packages/website/amagaki-benchmark | |
- name: Cache node modules | |
uses: actions/cache@v2 | |
env: | |
cache-name: cache-node-modules-workspaces | |
with: | |
path: | | |
~/.npm | |
**/node_modules | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- name: Prepare for docs. | |
run: npm install --dev | |
- name: Build website | |
working-directory: packages/website/ | |
run: | | |
npm run build | |
mkdir -p ./public/ | |
cp -r build/* ./public/ | |
echo "amagaki.dev" > ./public/CNAME | |
- name: Build docs | |
working-directory: packages/amagaki/ | |
run: | | |
rm -rf ./public/api | |
npm run docs:ci | |
mkdir -p ../website/public/api | |
mv ./public/api/* ../website/public/api/ | |
- name: Build benchmark build | |
run: | | |
# Preserve benchmark files, otherwise the gh-pages action will overwrite them. | |
mkdir -p public/benchmark | |
curl https://raw.githubusercontent.com/blinkk/amagaki/gh-pages/benchmark/data.json --output public/benchmark/data.json | |
curl https://raw.githubusercontent.com/blinkk/amagaki/gh-pages/benchmark/index.html --output public/benchmark/index.html | |
# Build the benchmark repository. | |
node ./packages/amagaki/dist/src/cli.js --profile build ./packages/website/amagaki-benchmark | |
- name: Process benchmark results | |
uses: rhysd/github-action-benchmark@v1 | |
with: | |
name: Amagaki profiling benchmark | |
tool: 'benchmarkjs' | |
output-file-path: packages/website/amagaki-benchmark/build/.amagaki/benchmark.txt | |
# Output the processed data to the benchmark directory. | |
benchmark-data-dir-path: packages/website/benchmark | |
external-data-json-path: packages/website/benchmark/data.json | |
max-items-in-chart: 100 | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./packages/website/public |