浏览代码

Use git tag as documentation version

Signed-off-by: Sean Young <sean@mess.org>
Sean Young 4 年之前
父节点
当前提交
44816d6084
共有 2 个文件被更改,包括 4 次插入5 次删除
  1. 2 2
      RELEASE_CHECKLIST.md
  2. 2 3
      docs/conf.py

+ 2 - 2
RELEASE_CHECKLIST.md

@@ -1,6 +1,6 @@
 # Release Checklist
 
-- Update the version in `Cargo.toml`, `docs/conf.py`, and the binary links in `docs/installing.rst`, and `CHANGELOG.md`
+- Update the version in `Cargo.toml`, the binary links in `docs/installing.rst`, and `CHANGELOG.md`
 - Copy the contents of the CHANGELOG for this release into commit message
 - Ensure the cargo publish is happy `cargo publish --dry-run`
 - Try the release github actions by pushing a tag to your solang fork
@@ -9,4 +9,4 @@
 - Push tag to origin
 - Wait for build to succeed
 - `cargo publish`
-- Release new version of vscode plugin if needed
+- Release new version of vscode plugin if needed

+ 2 - 3
docs/conf.py

@@ -13,7 +13,7 @@
 # import os
 # import sys
 # sys.path.insert(0, os.path.abspath('.'))
-
+import os
 
 # -- Project information -----------------------------------------------------
 
@@ -22,8 +22,7 @@ copyright = '2019 - 2021 Sean Young <sean@mess.org>'
 author = 'Sean Young <sean@mess.org>'
 
 # The full version, including alpha/beta/rc tags
-release = '0.1.9'
-
+release = os.popen('git describe --tags').readline().strip()
 
 # -- General configuration ---------------------------------------------------