mirror of
https://github.com/codex-storage/nim-leveldb.git
synced 2025-02-21 03:48:10 +00:00
compile the documentation separately
Due to nimble bug https://github.com/nim-lang/Nim/issues/14281
This commit is contained in:
parent
1816cf2d10
commit
0314aa721e
26
.github/workflows/main.yml
vendored
26
.github/workflows/main.yml
vendored
@ -1,10 +1,10 @@
|
|||||||
name: website
|
name: website
|
||||||
|
|
||||||
#on: [push]
|
on: [push] # debugging only
|
||||||
on:
|
#on:
|
||||||
push:
|
# push:
|
||||||
tags:
|
# tags:
|
||||||
- 'v*.*.*'
|
# - 'v*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
@ -39,15 +39,25 @@ jobs:
|
|||||||
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb-dev_1.22-3_amd64.deb
|
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb-dev_1.22-3_amd64.deb
|
||||||
sudo dpkg -i *.deb
|
sudo dpkg -i *.deb
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build and test
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
nimble build -Y
|
nimble build -Y
|
||||||
nimble test -Y
|
nimble test -Y
|
||||||
nimble doc --project --git.url:https://github.com/$GITHUB_REPOSITORY src/leveldb.nim --git.commit:$RELEASE_VERSION
|
-
|
||||||
|
name: Build doc
|
||||||
|
env:
|
||||||
|
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||||
|
run: |
|
||||||
|
# Due to bug https://github.com/nim-lang/Nim/issues/14281, compile the documentation separately.
|
||||||
|
#nimble doc --project --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb.nim
|
||||||
|
nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb.nim
|
||||||
|
nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb/raw.nim
|
||||||
|
find .
|
||||||
|
|
||||||
mkdir -p ./public
|
mkdir -p ./public
|
||||||
mv src/htmldocs/* ./public/
|
mv leveldb.html raw.html nimdoc.out.css ./public/
|
||||||
cd ./public/
|
cd ./public/
|
||||||
ln -s ./leveldb.html index.html
|
ln -s ./leveldb.html index.html
|
||||||
cd ../
|
cd ../
|
||||||
|
Loading…
x
Reference in New Issue
Block a user