Skip to content

Merge pull request #31 from weseek/fix/avoiding-the-use-of-git-lfs #30

Merge pull request #31 from weseek/fix/avoiding-the-use-of-git-lfs

Merge pull request #31 from weseek/fix/avoiding-the-use-of-git-lfs #30

Workflow file for this run

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
lfs: true
- name: Cache/Restore node_modules
id: cache-dependencies
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.OS }}-node_modules-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
- name: Get yarn cache dir
if: steps.cache-dependencies.outputs.cache-hit != 'true'
id: cache-yarn
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Cache/Restore yarn cache
if: steps.cache-dependencies.outputs.cache-hit != 'true'
uses: actions/cache@v3
with:
path: ${{ steps.cache-yarn.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node-version }}-
- name: Install dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: |
yarn
- name: Print dependencies
run: |
echo -n "node " && node -v
echo -n "npm " && npm -v
yarn list --depth=0
- name: Build docs
run: yarn docs:build
# please check out the docs of the workflow for more details
# @see https://github.com/crazy-max/ghaction-github-pages
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v3
with:
fqdn: growi.org
# deploy to gh-pages branch
target_branch: gh-pages
# deploy the default output dir of VuePress
build_dir: docs/.vuepress/dist/
env:
# @see https://docs.github.com/en/actions/reference/authentication-in-a-workflow#about-the-github_token-secret
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}