Skip to content

Merge pull request #29 from weseek/imprv/120946-new-top-design-organi… #25

Merge pull request #29 from weseek/imprv/120946-new-top-design-organi…

Merge pull request #29 from weseek/imprv/120946-new-top-design-organi… #25

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 and deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_SCRIPT: yarn docs:build
BUILD_DIR: docs/.vuepress/dist/
CNAME: growi.org