Skip to content

Commit

Permalink
feat(docs): ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
dogodo-cc committed Apr 17, 2024
1 parent e9ea388 commit 3afe8c6
Show file tree
Hide file tree
Showing 6 changed files with 858 additions and 71 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/deploy-oss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]
Expand All @@ -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/
Loading

0 comments on commit 3afe8c6

Please sign in to comment.