Skip to content

Commit

Permalink
ci(vuepress): adds vuepress build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Jun 7, 2022
1 parent 6188d46 commit b181b65
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/vuepress-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@master

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install pnpm
uses: pnpm/action-setup@v2.0.1
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install && cd packages/docs && pnpm build

- name: vuepress-deploy
uses: jenkey2011/vuepress-deploy@master
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_REPO: nearform/lyra
TARGET_BRANCH: gh-pages
BUILD_DIR: packages/docs/src/.vuepress/dist/
COMMIT_MESSAGE: "ci(docs): builds docs via vuepress-deploy action"

0 comments on commit b181b65

Please sign in to comment.