Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: REAL_VERSION replaceing #159

Merged
merged 1 commit into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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