Skip to content

wip: test build script in CI #39

wip: test build script in CI

wip: test build script in CI #39

Workflow file for this run

name: docs
# declare default permissions
permissions: read-all
on:
# enable manual run via GitHub UI
workflow_dispatch:
# enable trigger via remote call webhook
repository_dispatch:
types: update-docs
# enable run on "standard" updates to main branch
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
CORE: ./core
DOCS: ./docs
DIST: $DOCS/dist
SITE: $DOCS/site
WORK: $DOCS/build/work
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: defenseunicorns/pepr-docs
path: ${{DOCS}}

Check failure on line 36 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / docs

Invalid workflow file

The workflow is not valid. .github/workflows/docs.yml (Line: 36, Col: 17): Unrecognized named-value: 'DOCS'. Located at position 1 within expression: DOCS .github/workflows/docs.yml (Line: 41, Col: 17): Unrecognized named-value: 'CORE'. Located at position 1 within expression: CORE
- uses: actions/checkout@v4
with:
repository: defenseunicorns/pepr
path: ${{CORE}}
fetch-depth: 0 # pull history to get version tags
- name: Get current defenseunicorns/pepr release
id: get_current_pepr_release_version
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: defenseunicorns/pepr
excludes: prerelease, draft
- name: Build the docs!
run: |
SITE=$(realpath "$SITE")
CORE=$(realpath "$CORE")
cd "$DOCS"
npm ci
npm --workspace build run now -- --site "$SITE" --core "$CORE"
- name: Commit new docs back to source!
run: |
ls -la "$DIST"
# - name: Publish the site!
# run: |
# DIST=$(realpath ./docs/dist)
# ls -la "$DIST"