-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
126 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: build-doc-site-aliyun-docker | ||
|
||
# on: push | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
website: | ||
if: "startsWith(github.event.head_commit.message, 'release')" | ||
runs-on: ubuntu-latest | ||
environment: prod | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login Docker | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: registry.cn-hangzhou.aliyuncs.com | ||
username: ${{ secrets.ALIYUN_USERNAME }} | ||
password: ${{ secrets.ALIYUN_PASSWORD }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile.docs | ||
push: true | ||
tags: registry.cn-hangzhou.aliyuncs.com/alain/docs:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
order: 1000 | ||
type: Basic | ||
title: Upgrade to version 18.0 | ||
hot: true | ||
--- | ||
|
||
> This guide applies to the current version ng-yunzai >= `17`; | ||
> If you encounter problems during the upgrade process, feel free to comment here. | ||
> If you find any errors in this guide, please point out | ||
> Or you have encountered a new problem and solved it, welcome to comment here. | ||
|
||
## Before upgrade | ||
|
||
1. Make sure `Node.js` >= `18.19.1`. | ||
2. Create a new branch, or use other methods to back up the current project. | ||
3. Delete the `package-lock.json` or `yarn.lock` file. | ||
4. Remove `"postinstall": "ng-less-javascript-enabled-patch"` in `package.json`. | ||
|
||
### 1.Upgrade dependencies | ||
|
||
- Upgrade Angular to 17.x version, Run `ng update @angular/core@18 @angular/cli@18 @angular-eslint/schematics@18 ng-zorro-antd@18 ng-yunzai@18`. | ||
- _Run `ng update @angular/cdk@18`, if you have used `@angular/cdk`._ | ||
|
||
> NG-ALAIN scaffolding upgrade all change files, please refer to: :[#2394](https://github.com/hbyunzai/ng-yunzai/pull/2504/files). | ||
### QA | ||
|
||
**throw new Error(`Not found ${lessLangPath}`);** | ||
|
||
Please remove `"postinstall": "ng-less-javascript-enabled-patch"` first, save the file and then upgrade. `ng-less-javascript-enabled-patch` will be automatically deleted during the upgrade. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
order: 1000 | ||
type: Basic | ||
title: 升级到 18.0 版本 | ||
hot: true | ||
--- | ||
|
||
> 本指南适用于当前版本 ng-yunzai >= `17` ; | ||
> 如果在升级过程中遇到问题,欢迎提出。提问前请阅读 [如何向开源社区提问题](https://github.com/seajs/seajs/issues/545) | ||
> 如果发现本指南存在遗漏/错误,请指出! | ||
> 或者你遇到了新的问题并解决了,欢迎补充! | ||
## 开始之前 | ||
|
||
1. 首先确保你 `Node.js` >= `18.19.1` | ||
2. 创建新的分支,或者使用其他方式备份当前项目 | ||
3. 删除项目下 `package-lock.json` 或 `yarn.lock` 文件 | ||
4. 移除 `package.json` 中的 `"postinstall": "ng-less-javascript-enabled-patch"` | ||
|
||
## 升级步骤 | ||
|
||
### 升级相关依赖 | ||
|
||
- 将项目升级到 Angular 17 运行 `ng update @angular/core@18 @angular/cli@18 @angular-eslint/schematics@18 ng-zorro-antd@18 ng-yunzai@18`。 | ||
- _如果你有单独使用 `@angular/cdk` 请执行 `ng update @angular/cdk@18`_ | ||
|
||
> NG-ALAIN脚手架升级全部变更文件,请参考:[#2394](https://github.com/hbyunzai/ng-yunzai/pull/2504/files)。 | ||
### QA | ||
|
||
**throw new Error(`Not found ${lessLangPath}`);** | ||
|
||
请先移除 `"postinstall": "ng-less-javascript-enabled-patch"` 保存后再进行升级,`ng-less-javascript-enabled-patch` 会在升级中自动删除。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.