Skip to content

Commit

Permalink
fix: REAL_VERSION replaceing (#159)
Browse files Browse the repository at this point in the history
Co-authored-by: dengbo <bo.deng@datalayers.io>
  • Loading branch information
hipibo and dengbo authored Oct 12, 2024
1 parent 96f48d8 commit 21e6aac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
VERSION="latest"
else
VERSION=$BRANCH
# save the full version string, do not change this name
REAL_VERSION=$VERSION
# make short version as directory name
VERSION=$(echo $BRANCH | awk -F. '{print $1"."$2}')
fi
# save the full version string, do not change this name
REAL_VERSION=$VERSION
# do not remove DOCS_BRANCH
echo "DOCS_BRANCH=$BRANCH" >> $GITHUB_ENV
echo "VERSION=$VERSION" >> $GITHUB_ENV
Expand Down
4 changes: 2 additions & 2 deletions zh_CN/getting-started/centos.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ Datalayers 支持的 CentOS 版本为:

:::: tabs
::: tab amd64
1. 下载安装包,<a href="https://docs.datalayers.cn/public/centos/datalayers-2.2.1-el7-amd64.rpm" download="datalayers-2.2.1-el7-amd64.rpm">点击下载</a>rpm安装包。
1. 下载安装包,<a href="https://docs.datalayers.cn/public/centos/datalayers-{@version_number@}-el7-amd64.rpm" download="datalayers-{@version_number@}-el7-amd64.rpm">点击下载</a>rpm安装包。

2. 通过如下命令安装:
``` bash
sudo yum localinstall ./datalayers-2.2.1-el7-amd64.rpm
sudo yum localinstall ./datalayers-{@version_number@}-el7-amd64.rpm
```
:::

Expand Down
2 changes: 1 addition & 1 deletion zh_CN/getting-started/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ docker pull datalayers/datalayers:nightly
或者拉取指定版本的镜像:

``` bash
docker pull datalayers/datalayers:v2.2.1
docker pull datalayers/datalayers:v{@version_number@}
```

执行以下命令,启动一个 Datalayers 容器:
Expand Down
8 changes: 4 additions & 4 deletions zh_CN/getting-started/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ Datalayers 支持的 Ubuntu 版本为:

:::: tabs
::: tab amd64
1. 下载安装包, <a href="https://docs.datalayers.cn/public/ubuntu/datalayers-2.2.1-ubuntu22.04-amd64.deb" download="datalayers-2.2.1-ubuntu22.04-amd64.deb">点击下载</a>deb安装包。
1. 下载安装包, <a href="https://docs.datalayers.cn/public/ubuntu/datalayers-{@version_number@}-ubuntu22.04-amd64.deb" download="datalayers-{@version_number@}-ubuntu22.04-amd64.deb">点击下载</a>deb安装包。

2. 通过如下命令安装:

``` bash
sudo dpkg -i ./datalayers-2.2.1-ubuntu22.04-amd64.deb
sudo dpkg -i ./datalayers-{@version_number@}-ubuntu22.04-amd64.deb
```
:::

::: tab arm64
1. 下载安装包, <a href="https://docs.datalayers.cn/public/ubuntu/datalayers-2.2.1-ubuntu22.04-arm64.deb" download="datalayers-2.2.1-ubuntu22.04-arm64.deb">点击下载</a>deb安装包。
1. 下载安装包, <a href="https://docs.datalayers.cn/public/ubuntu/datalayers-{@version_number@}-ubuntu22.04-arm64.deb" download="datalayers-{@version_number@}-ubuntu22.04-arm64.deb">点击下载</a>deb安装包。

2. 通过如下命令安装:

``` bash
sudo dpkg -i ./datalayers-2.2.1-ubuntu22.04-arm64.deb
sudo dpkg -i ./datalayers-{@version_number@}-ubuntu22.04-arm64.deb
```
:::

Expand Down

0 comments on commit 21e6aac

Please sign in to comment.