-
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
6 changed files
with
858 additions
and
71 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,6 +11,7 @@ on: | |
|
||
jobs: | ||
build: | ||
if: contains(github.event.head_commit.message, 'docs') | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
|
@@ -29,14 +30,10 @@ jobs: | |
${{ runner.os }}-node- | ||
- name: 安装依赖 | ||
if: contains(github.event.head_commit.message, 'docs') | ||
run: npm install | ||
|
||
- name: 构建项目 | ||
if: contains(github.event.head_commit.message, 'docs') | ||
run: | | ||
npm run docs:build | ||
echo 构建成功. | ||
run: npm run docs:build | ||
|
||
- name: 启用 oss-util 工具 | ||
uses: manyuanrong/[email protected] | ||
|
@@ -46,11 +43,13 @@ jobs: | |
access-key-secret: ${{ secrets.OSS_SECRET }} | ||
|
||
- name: 项目部署 - docs | ||
if: contains(github.event.head_commit.message, 'docs') | ||
run: | | ||
ossutil cp -rf ./projects/document/docs/.vitepress/dist oss://website-cocos-fe/ | ||
run: ossutil cp -rf ./projects/document/docs/.vitepress/dist oss://website-cocos-fe/ | ||
|
||
- name: 项目部署 - githubIds | ||
github-ids: | ||
if: contains(github.event.head_commit.message, 'github') | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 项目部署 - githubIds | ||
if: contains(github.event.head_commit.message, 'github') | ||
run: | | ||
ossutil cp -rf ./projects/github-ids/github-ids.json oss://90s/github-ids/ | ||
ossutil cp -rf ./projects/github-ids/github-ids.json oss://90s/github-ids/ |
Oops, something went wrong.