Files
Nexus-Guard-Suite/.gitea/workflows/docs_call.yaml
T

37 lines
876 B
YAML

name: Build Docs
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/docs
steps:
- name: Configure git auth for submodules
run: git config --global url."https://x-access-token:${{ secrets.BUILD_TOKEN }}@git.datadunia.com/".insteadOf "https://git.datadunia.com/"
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
token: ${{ secrets.BUILD_TOKEN }}
persist-credentials: true
- uses: actions/setup-node@v4
with:
node-version: '24'
- name: Install
run: npm ci || npm install
- name: Build
run: npm run docs:build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: docs-dist
path: apps/docs/.vitepress/dist/