Skip to content

refactor fake data in workflows-lib stories #188

refactor fake data in workflows-lib stories

refactor fake data in workflows-lib stories #188

Workflow file for this run

name: Github Pages
on:
push:
pull_request:
jobs:
lint_docs:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 18
- name: Install Yarn Dependencies
uses: borales/[email protected]
with:
cmd: global add markdownlint-cli2 markdown-it-admon
- name: Lint with markdownlint-cli2
run: >
markdownlint-cli2
**/*.{md,markdown}
build_docs:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- name: Checkout Source
uses: actions/[email protected]
with:
lfs: true
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.12
- name: Install Python Dependencies
run: pip install -r docs/requirements.txt
- name: Build Docs
run: mkdocs build
- name: Upload Docs Artifact
uses: actions/[email protected]
with:
name: docs
path: site
build_storybook:
# Deduplicate jobs from pull requests and branch pushes within the same repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend
steps:
- name: Checkout Source
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: "22.x"
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Build Storybook
working-directory: frontend/workflows-lib
run: yarn build-storybook --output-dir storybook-static
- name: Upload Storybook Artifact
uses: actions/[email protected]
with:
name: storybook
path: frontend/workflows-lib/storybook-static
publish_pages:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs:
- lint_docs
- build_docs
- build_storybook
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/[email protected]
- name: Download Docs Artifact
uses: actions/[email protected]
with:
name: docs
path: docs
- name: Download Storybook Artifact
uses: actions/[email protected]
with:
name: storybook
path: storybook
- name: Fix File Permissions for Pages
run: chmod -R +rX docs storybook
- name: Merge Artifacts
uses: actions/upload-artifact/[email protected]
with:
separate-directories: true
- name: Download Merged Artifact
uses: actions/[email protected]
with:
name: merged-artifacts
path: merged-artifacts
- name: Upload Merged Artifact
uses: actions/[email protected]
with:
path: merged-artifacts
- name: Publish Docs to GitHub Pages
id: deployment
uses: actions/[email protected]