From 788fe7d7a6310e7af2d4400eae17477765dac533 Mon Sep 17 00:00:00 2001 From: Xie Yanbo Date: Wed, 24 Jun 2020 11:46:13 +0800 Subject: [PATCH] add document link --- .github/workflows/main.yml | 23 ++++++++++------------- README.md | 3 +++ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index dd1cf72..e18fb01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,16 @@ name: website -on: [push] # debugging only -#on: -# push: -# tags: -# - 'v*.*.*' +#on: [push] # debugging only +on: + push: + tags: + - 'v*.*.*' jobs: publish: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v1 - name: Set output 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/libleveldb-dev_1.22-3_amd64.deb sudo dpkg -i *.deb - - - name: Build and test + - name: Build and test env: RELEASE_VERSION: ${{ steps.vars.outputs.tag }} run: | nimble build -Y nimble test -Y - - - name: Build doc + - name: Build doc env: RELEASE_VERSION: ${{ steps.vars.outputs.tag }} run: | @@ -56,13 +53,13 @@ jobs: nimble doc --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb/raw.nim find . + # Deploying documentation of the latest version. mkdir -p ./public mv leveldb.html raw.html nimdoc.out.css ./public/ cd ./public/ ln -s ./leveldb.html index.html cd ../ - - - name: Deploy + - name: Deploy if: success() uses: crazy-max/ghaction-github-pages@v1.3.0 with: diff --git a/README.md b/README.md index 8ced596..a594d70 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ # 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. Create a database: