-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
07426cf
commit 924a5b8
Showing
2 changed files
with
5 additions
and
11 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 |
---|---|---|
|
@@ -11,23 +11,16 @@ jobs: | |
steps: | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: "13.x" | ||
node-version: "12.x" | ||
registry-url: "https://registry.npmjs.org/" | ||
|
||
- name: Get Static | ||
run: | | ||
git clone https://github.com/angular/angular-cn -b master --single-branch angular.cn --depth 1 | ||
# Build v2 | ||
- name: Build website v2 | ||
run: | | ||
cd angular.cn | ||
npm install | ||
node ./node_module/.bin/gulp build-compile --lang="(ts|js)" | ||
git clone https://github.com/ng-docs/preview.angular.cn.git -b master --single-branch angular.cn --depth 1 | ||
- name: Deploy angular.cn | ||
uses: peaceiris/[email protected] | ||
env: | ||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }} | ||
PUBLISH_BRANCH: angular.cn | ||
PUBLISH_DIR: ./angular.cn/www | ||
PUBLISH_DIR: ./angular.cn |
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