add document link
This commit is contained in:
parent
c531156f45
commit
788fe7d7a6
|
@ -1,17 +1,16 @@
|
||||||
name: website
|
name: website
|
||||||
|
|
||||||
on: [push] # debugging only
|
#on: [push] # debugging only
|
||||||
#on:
|
on:
|
||||||
# push:
|
push:
|
||||||
# tags:
|
tags:
|
||||||
# - 'v*.*.*'
|
- 'v*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
- name: Checkout
|
||||||
name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Set output
|
- name: Set output
|
||||||
id: vars
|
id: vars
|
||||||
|
@ -38,15 +37,13 @@ jobs:
|
||||||
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb1d_1.22-3_amd64.deb
|
wget http://ftp.us.debian.org/debian/pool/main/l/leveldb/libleveldb1d_1.22-3_amd64.deb
|
||||||
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 and test
|
||||||
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
|
||||||
-
|
- name: Build doc
|
||||||
name: Build doc
|
|
||||||
env:
|
env:
|
||||||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -56,13 +53,13 @@ jobs:
|
||||||
nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb/raw.nim
|
nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb/raw.nim
|
||||||
find .
|
find .
|
||||||
|
|
||||||
|
# Deploying documentation of the latest version.
|
||||||
mkdir -p ./public
|
mkdir -p ./public
|
||||||
mv leveldb.html raw.html nimdoc.out.css ./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 ../
|
||||||
-
|
- name: Deploy
|
||||||
name: Deploy
|
|
||||||
if: success()
|
if: success()
|
||||||
uses: crazy-max/ghaction-github-pages@v1.3.0
|
uses: crazy-max/ghaction-github-pages@v1.3.0
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
# leveldb.nim
|
# leveldb.nim
|
||||||
|
|
||||||
|
[![docs](https://img.shields.io/badge/docs-leveldb.nim-green)](https://zielmicha.github.io/leveldb.nim/)
|
||||||
|
|
||||||
A LevelDB wrapper for Nim in a Nim friendly way.
|
A LevelDB wrapper for Nim in a Nim friendly way.
|
||||||
|
|
||||||
Create a database:
|
Create a database:
|
||||||
|
|
Loading…
Reference in New Issue