Skip to content

Commit

Permalink
feat: 注释github action打包
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryFan626 committed Apr 16, 2024
1 parent 1f53a52 commit 9d7af2f
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 70 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# 当前工作流的名字 随便取
name: Build Docusaurus Test
# # 当前工作流的名字 随便取
# name: Build Docusaurus Test

# 指定 workflow 触发的 event
# 在dev分支提交的时候触发
on:
push:
branches:
- dev
# # 指定 workflow 触发的 event
# # 在dev分支提交的时候触发
# on:
# push:
# branches:
# - dev

# 一个 workflow 由一个或多个 job 组成
jobs:
# job id: 是 job 的唯一标识
build_and_deploy:
# 在 Github 中显示的 job 名称
name: Build and Deploy
# job 运行的环境配置
runs-on: ubuntu-latest
# 一个 job 由多个 step 组成
steps:
- uses: actions/checkout@v2
- name: Init environment
uses: ./.github/actions/init
- name: Build
run:
pnpm build
# 把文件上传到OSS
- name: Set up oss utils
uses: yizhoumo/setup-ossutil@v1
with:
endpoint: "oss-cn-zhangjiakou.aliyuncs.com"
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
ossutil-version: '1.7.16'
- name: Upload to oss
run: |
ossutil cp -rf --acl=public-read ./build/ oss://chat2db-doc-test/
# # 一个 workflow 由一个或多个 job 组成
# jobs:
# # job id: 是 job 的唯一标识
# build_and_deploy:
# # 在 Github 中显示的 job 名称
# name: Build and Deploy
# # job 运行的环境配置
# runs-on: ubuntu-latest
# # 一个 job 由多个 step 组成
# steps:
# - uses: actions/checkout@v2
# - name: Init environment
# uses: ./.github/actions/init
# - name: Build
# run:
# pnpm build
# # 把文件上传到OSS
# - name: Set up oss utils
# uses: yizhoumo/setup-ossutil@v1
# with:
# endpoint: "oss-cn-zhangjiakou.aliyuncs.com"
# access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
# access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
# ossutil-version: '1.7.16'
# - name: Upload to oss
# run: |
# ossutil cp -rf --acl=public-read ./build/ oss://chat2db-doc-test/
70 changes: 35 additions & 35 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
# 当前工作流的名字 随便取
name: Build
# # 当前工作流的名字 随便取
# name: Build

# 指定 workflow 触发的 event
# 在main分支提交的时候触发
on:
push:
branches:
- main
# # 指定 workflow 触发的 event
# # 在main分支提交的时候触发
# on:
# push:
# branches:
# - main

# 一个 workflow 由一个或多个 job 组成
jobs:
# job id: 是 job 的唯一标识
build_and_deploy:
# 在 Github 中显示的 job 名称
name: Build and Deploy
# job 运行的环境配置
runs-on: ubuntu-latest
# 一个 job 由多个 step 组成
steps:
- uses: actions/checkout@v2
- name: Init environment
uses: ./.github/actions/init
- name: Build
run:
pnpm run build
# 把文件上传到OSS
- name: Set up oss utils
uses: yizhoumo/setup-ossutil@v1
with:
endpoint: "oss-cn-zhangjiakou.aliyuncs.com"
access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
ossutil-version: '1.7.16'
- name: Upload to oss
run: |
ossutil cp -rf --acl=public-read ./build/ oss://chat2db-doc/
# # 一个 workflow 由一个或多个 job 组成
# jobs:
# # job id: 是 job 的唯一标识
# build_and_deploy:
# # 在 Github 中显示的 job 名称
# name: Build and Deploy
# # job 运行的环境配置
# runs-on: ubuntu-latest
# # 一个 job 由多个 step 组成
# steps:
# - uses: actions/checkout@v2
# - name: Init environment
# uses: ./.github/actions/init
# - name: Build
# run:
# pnpm run build
# # 把文件上传到OSS
# - name: Set up oss utils
# uses: yizhoumo/setup-ossutil@v1
# with:
# endpoint: "oss-cn-zhangjiakou.aliyuncs.com"
# access-key-id: ${{ secrets.OSS_ACCESS_KEY_ID }}
# access-key-secret: ${{ secrets.OSS_ACCESS_KEY_SECRET }}
# ossutil-version: '1.7.16'
# - name: Upload to oss
# run: |
# ossutil cp -rf --acl=public-read ./build/ oss://chat2db-doc/

0 comments on commit 9d7af2f

Please sign in to comment.