Skip to content

Commit

Permalink
wip: test build script in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
btlghrants committed Dec 19, 2023
1 parent 55743cd commit 8cacf50
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 81 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ on:
pull_request:
branches: ["main"]

env:
CORE: ./core
DOCS: ./docs
DIST: ${{DOCS}}/dist
SITE: ${{DOCS}}/site
WORK: ${{DOCS}}/build/work

jobs:

Expand All @@ -27,12 +33,12 @@ jobs:
- uses: actions/checkout@v4
with:
repository: defenseunicorns/pepr-docs
path: docs
path: ${{DOCS}}

- uses: actions/checkout@v4
with:
repository: defenseunicorns/pepr
path: core
path: ${{CORE}}
fetch-depth: 0 # pull history to get version tags

- name: Get current defenseunicorns/pepr release
Expand All @@ -44,14 +50,17 @@ jobs:

- name: Build the docs!
run: |
DOCS=$(realpath ./docs)
SITE=$(realpath "$DOCS"/site)
CORE=$(realpath ./core)
SITE=$(realpath "$SITE")
CORE=$(realpath "$CORE")
cd "$DOCS"
npm ci
npm --workspace build run now -- --site "$SITE" --core "$CORE"
- name: test
- name: Commit new docs back to source!
run: |
DIST=$(realpath ./docs/dist)
ls -la "$DIST"
ls -la "$DIST"
# - name: Publish the site!
# run: |
# DIST=$(realpath ./docs/dist)
# ls -la "$DIST"
73 changes: 0 additions & 73 deletions site/content/en/main/actions.md

This file was deleted.

0 comments on commit 8cacf50

Please sign in to comment.