mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
workflows: Adjust "guide" release job for pre-built docs
The previous version was failing as asciidoc wasn't installed in that
environment. Since 6a0da46280 we have pre-built documentation in the
release tarballs, so we don't have to build it any more. Just extract
it.
https://issues.redhat.com/browse/COCKPIT-1375
This commit is contained in:
parent
f1c5912583
commit
2ac1ead2f1
1 changed files with 3 additions and 8 deletions
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
|
|
@ -78,20 +78,15 @@ jobs:
|
|||
- name: Verify checksum
|
||||
run: echo '${{ needs.source.outputs.checksum }} ${{ needs.source.outputs.filename }}' | sha256sum -c
|
||||
|
||||
- name: Build guide
|
||||
- name: Extract guide from release tarball
|
||||
run: |
|
||||
mkdir source build
|
||||
mkdir source
|
||||
tar --directory source --extract --strip-components=1 --file '${{ needs.source.outputs.filename }}'
|
||||
(
|
||||
cd build
|
||||
../source/configure
|
||||
make render-docs
|
||||
)
|
||||
|
||||
- name: Update the website
|
||||
run: |
|
||||
rm -rf website/guide/latest
|
||||
mv -Tv build/doc/output/html website/guide/latest
|
||||
cp -rT source/doc/output/html website/guide/latest
|
||||
|
||||
# Add frontmatter for Jekyll
|
||||
find website/guide/latest -name '*.html' -exec sed -i '
|
||||
|
|
|
|||
Loading…
Reference in a new issue