-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (45 loc) · 1.28 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: defenseunicorns/pepr-docs
path: docs
- 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: |
DOCS=$(realpath ./docs)
SITE=$(realpath "$DOCS"/site)
CORE=$(realpath ./core)
cd "$DOCS"
npm ci
npm --workspace build run now -- --site "$SITE" --core "$CORE"
- name: Build the docs!
- name: test
run: |
ls -la