mirror of
https://github.com/logos-storage/nim-leveldb.git
synced 2026-01-03 22:23:08 +00:00
fix regex of version tag, build project doc (#27)
This commit is contained in:
parent
6cf9f7f938
commit
addc3a6f4f
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
@ -4,14 +4,14 @@ name: website
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
- '[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v1
|
||||
uses: actions/checkout@v2
|
||||
- name: Set output
|
||||
id: vars
|
||||
run: echo ::set-output name=tag::${GITHUB_REF:10}
|
||||
@ -27,7 +27,7 @@ jobs:
|
||||
with:
|
||||
path: ~/.nimble
|
||||
key: ${{ runner.os }}-nimble-stable
|
||||
- uses: jiro4989/setup-nim-action@v1.0.2
|
||||
- uses: jiro4989/setup-nim-action@v1
|
||||
with:
|
||||
nim-version: 'stable'
|
||||
- name: Install libsnappy
|
||||
@ -48,14 +48,11 @@ jobs:
|
||||
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
|
||||
nimble doc --project --git.url:https://github.com/$GITHUB_REPOSITORY --git.commit:$RELEASE_VERSION src/leveldb.nim
|
||||
find .
|
||||
|
||||
# Deploying documentation of the latest version.
|
||||
mkdir -p ./public
|
||||
mv leveldb.html raw.html nimdoc.out.css ./public/
|
||||
mv src/htmldocs/* public/
|
||||
cd ./public/
|
||||
ln -s ./leveldb.html index.html
|
||||
cd ../
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user