Skip to content

build: added trusted publishing #56

build: added trusted publishing

build: added trusted publishing #56

Workflow file for this run

name: Docs
env:
USE_LOCKFILE: ${{ secrets.USE_LOCKFILE }}
ENABLE_DOCS: ${{ secrets.ENABLE_DOCS }}
on:
push:
branches: [ master ]
repository_dispatch:
types: [ docs ]
jobs:
docs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ["lts/*"]
steps:
- uses: actions/checkout@v6
if: "env.ENABLE_DOCS == 'true'"
- name: Setup
uses: ./.github/actions/composite-setup
if: "env.ENABLE_DOCS == 'true'"
with:
USE_LOCKFILE: ${{ env.USE_LOCKFILE }}
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build
uses: ./.github/actions/composite-build
if: "env.ENABLE_DOCS == 'true'"
with:
USE_LOCKFILE: ${{ env.USE_LOCKFILE }}
- run: pnpm doc
if: "env.ENABLE_DOCS == 'true'"
- run: cp -r playground/.output/public docs/demo
- name: Documentation
uses: crazy-max/ghaction-github-pages@v4
if: "env.ENABLE_DOCS == 'true'"
with:
jekyll: false
target_branch: gh-pages
build_dir: docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}