Skip to content

Commit dda5b0a

Browse files
author
Martin Mulholland
committed
testing workflow
1 parent 93ddde8 commit dda5b0a

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

.github/workflows/main.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
env:
66
SITE_DIR: 'site'
7+
DOC_DIR: 'site/devfile'
78
jobs:
89
build_site:
910
name: "Build site with Antora"
@@ -15,12 +16,20 @@ jobs:
1516
version: 12.x
1617
- name: Checkout
1718
uses: actions/checkout@v2
19+
with:
20+
fetch-depth: 0
21+
- name: "Get all"
22+
run: git fetch --all
23+
- name: "show playbook content"
24+
run: cat antora-playbook.yml
1825
- name: "Generate API Reference"
1926
run: yarn install && yarn run generate-api-reference
2027
- name: "Generate site using antora site action"
2128
uses: kameshsampath/antora-site-action@master
2229
with:
2330
antora_playbook: antora-playbook.yml
31+
- name: List version
32+
run: ls "${{ github.workspace }}/build/${{ env.DOC_DIR }}"
2433
- name: "Upload generated site"
2534
uses: actions/upload-artifact@v2
2635
with:

antora-playbook.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ asciidoc:
55
che-prod: Eclipse Che
66
che-prod-short: Che
77
che-prod-id-short: che
8-
che-prod-ver: 7.20
8+
che-prod-ver: 7.30
99
prod: Devfile
1010
prod-short: Devfile
1111
prod-id-short: devfile
@@ -14,9 +14,9 @@ content:
1414
- branches: HEAD
1515
start_path: docs
1616
url: ./
17-
- branches: v2.0.x
17+
- branches: [v2.*]
1818
start_path: docs
19-
url: ./
19+
url: https://github.com/devfile/docs
2020
output:
2121
destinations:
2222
- clean: true

0 commit comments

Comments
 (0)