Skip to content

feat: add donation banner for PK #8

feat: add donation banner for PK

feat: add donation banner for PK #8

Workflow file for this run

# Build and deploy developer docs (oa-docs package)
name: Docs Deploy
on:
push:
branches:
- master
# Only run action if changes have been made
# to the documentation or components packages
paths:
- 'packages/documentation/**'
- 'packages/components/**'
- 'packages/themes/**'
- '.github/workflows/docs-deploy.yml'
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.8.0'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
# Setup yarn 2 cache: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Setup Cache
uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('packages/documentation/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
# Populate component storybook docs as static asset to include in overall docs
- name: Build component docs
run: yarn workspace oa-components install --immutable && yarn storybook:build
- name: Copy component docs to storybook
run: mv packages/components/storybook-static packages/documentation/static
# Build and deploy docs
- name: Install npm dependencies
run: yarn workspace oa-docs install --immutable
- name: Set Config
run: cp packages/documentation/docusaurus.config.gh-pages.js packages/documentation/docusaurus.config.js
- name: Build Docs
run: yarn workspace oa-docs build
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/documentation/build