Skip to content

Merge pull request #131 from ember-tooling/dependabot/npm_and_yarn/li… #96

Merge pull request #131 from ember-tooling/dependabot/npm_and_yarn/li…

Merge pull request #131 from ember-tooling/dependabot/npm_and_yarn/li… #96

Workflow file for this run

name: Docs
on:
push:
branches:
- main
jobs:
gh-pages:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: volta-cli/action@v1
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v1
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install
- name: Create initial tree-sitter config file
run: yarn tree-sitter init-config
- name: Update config with desired settings
run: cp docs/config.json $HOME/.config/tree-sitter/config.json
- name: Generate highlighted file
run: yarn tree-sitter highlight --html test/highlight/highlights.hbs > docs/index.html
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: docs