Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Oct 31, 2023
1 parent a04ce07 commit c618626
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: zh-cn
path: build/zh-cn.tar.bz2
path: build/zh-cn.tar

docker1:
name: docker1
Expand All @@ -102,7 +102,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: en-us
path: build/en-us.tar.bz2
path: build/en-us.tar

docker:
name: docker
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: zh-cn
path: build/zh-cn.tar.bz2
path: build/zh-cn.tar

docker1:
name: docker1
Expand All @@ -112,7 +112,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: en-us
path: build/en-us.tar.bz2
path: build/en-us.tar

docker:
name: docker
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.cn.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM ossrs/httpx:1 AS dist

EXPOSE 80 443

ADD build/zh-cn.tar.bz2 /usr/local/srs-docs/
ADD build/en-us.tar.bz2 /usr/local/srs-docs/
ADD build/zh-cn.tar /usr/local/srs-docs/
ADD build/en-us.tar /usr/local/srs-docs/
RUN cd /usr/local/srs-docs && ln -sf . lts && du -sh * && \
du -sh zh-cn/* && du -sh en-us/*

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.en.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ FROM ossrs/httpx:1 AS dist

EXPOSE 80 443

ADD build/zh-cn.tar.bz2 /usr/local/srs-docs/
ADD build/en-us.tar.bz2 /usr/local/srs-docs/
ADD build/zh-cn.tar /usr/local/srs-docs/
ADD build/en-us.tar /usr/local/srs-docs/
RUN cd /usr/local/srs-docs && ln -sf . lts && du -sh * && \
du -sh zh-cn/* && du -sh en-us/*

Expand Down
5 changes: 3 additions & 2 deletions auto/build-cn-stage0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ yarn cross-env REGION='zh-cn' BASE_URL='/lts/zh-cn/' \
SEARCH_HTTPS_HOST=ossrs.net SEARCH_HTTPS_PORT=443 \
SEARCH_HTTP_HOST=ossrs.net SEARCH_HTTP_PORT=80 \
SEARCH_APIKEY=$SEARCH_APIKEY \
docusaurus build --locale zh-cn --out-dir build/zh-cn
docusaurus build --locale zh-cn --out-dir build/zh-cn &&

(cd build && tar jcf zh-cn.tar.bz2 zh-cn)
(cd build && tar cf zh-cn.tar zh-cn) &&
du -sh build/*

if [[ $? -ne 0 ]]; then echo "Build fail"; exit 1; fi
5 changes: 3 additions & 2 deletions auto/build-cn-stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ yarn cross-env REGION='zh-cn' BASE_URL='/lts/en-us/' \
SEARCH_HTTPS_HOST=ossrs.net SEARCH_HTTPS_PORT=443 \
SEARCH_HTTP_HOST=ossrs.net SEARCH_HTTP_PORT=80 \
SEARCH_APIKEY=$SEARCH_APIKEY \
docusaurus build --locale en-us --out-dir build/en-us
docusaurus build --locale en-us --out-dir build/en-us &&

(cd build && tar jcf en-us.tar.bz2 en-us)
(cd build && tar cf en-us.tar en-us) &&
du -sh build/*

if [[ $? -ne 0 ]]; then echo "Build fail"; exit 1; fi
5 changes: 3 additions & 2 deletions auto/build-en-stage0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ yarn cross-env REGION='zh-cn' BASE_URL='/lts/zh-cn/' \
SEARCH_HTTPS_HOST=ossrs.io SEARCH_HTTPS_PORT=443 \
SEARCH_HTTP_HOST=ossrs.io SEARCH_HTTP_PORT=80 \
SEARCH_APIKEY=$SEARCH_APIKEY \
docusaurus build --locale zh-cn --out-dir build/zh-cn
docusaurus build --locale zh-cn --out-dir build/zh-cn &&

(cd build && tar jcf zh-cn.tar.bz2 zh-cn)
(cd build && tar cf zh-cn.tar zh-cn) &&
du -sh build/*

if [[ $? -ne 0 ]]; then echo "Build fail"; exit 1; fi
5 changes: 3 additions & 2 deletions auto/build-en-stage1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ yarn cross-env REGION='zh-cn' BASE_URL='/lts/en-us/' \
SEARCH_HTTPS_HOST=ossrs.io SEARCH_HTTPS_PORT=443 \
SEARCH_HTTP_HOST=ossrs.io SEARCH_HTTP_PORT=80 \
SEARCH_APIKEY=$SEARCH_APIKEY \
docusaurus build --locale en-us --out-dir build/en-us
docusaurus build --locale en-us --out-dir build/en-us &&

(cd build && tar jcf en-us.tar.bz2 en-us)
(cd build && tar cf en-us.tar en-us) &&
du -sh build/*

if [[ $? -ne 0 ]]; then echo "Build fail"; exit 1; fi

0 comments on commit c618626

Please sign in to comment.