mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
chore: 拆分git publish
This commit is contained in:
@@ -56,3 +56,16 @@ jobs:
|
|||||||
retry-count: 3
|
retry-count: 3
|
||||||
retry-delay: 5000
|
retry-delay: 5000
|
||||||
|
|
||||||
|
- name: deploy-certd-doc
|
||||||
|
uses: tyrrrz/action-http-request@master
|
||||||
|
with:
|
||||||
|
url: ${{ secrets.WEBHOOK_CERTD_DOC }}
|
||||||
|
method: POST
|
||||||
|
body: |
|
||||||
|
{
|
||||||
|
"CERTD_VERSION": "1.0.0"
|
||||||
|
}
|
||||||
|
headers: |
|
||||||
|
Content-Type: application/json
|
||||||
|
retry-count: 3
|
||||||
|
retry-delay: 5000
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
name: publish-gitee
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ['v2-dev']
|
||||||
|
paths:
|
||||||
|
- "trigger/publish.trigger"
|
||||||
|
# workflow_run:
|
||||||
|
# workflows: [ "deploy-demo" ]
|
||||||
|
# types:
|
||||||
|
# - completed
|
||||||
|
|
||||||
|
# schedule:
|
||||||
|
# - # 国际时间 19:17 执行,北京时间3:17 ↙↙↙ 改成你想要每天自动执行的时间
|
||||||
|
# - cron: '17 19 * * *'
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
packages: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish-atomgit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
lfs: true
|
||||||
|
|
||||||
|
- name: publish_to_gitee
|
||||||
|
id: publish_to_gitee
|
||||||
|
run: |
|
||||||
|
export GITEE_TOKEN=${{ secrets.GITEE_TOKEN }}
|
||||||
|
pnpm install
|
||||||
|
npm run publish_to_gitee
|
||||||
|
working-directory: ./
|
||||||
@@ -130,23 +130,4 @@ jobs:
|
|||||||
Content-Type: application/json
|
Content-Type: application/json
|
||||||
retry-count: 3
|
retry-count: 3
|
||||||
retry-delay: 5000
|
retry-delay: 5000
|
||||||
|
|
||||||
- name: publish_to_atomgit
|
|
||||||
id: publish_to_atomgit
|
|
||||||
run: |
|
|
||||||
rootDir=$(pwd)
|
|
||||||
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
|
||||||
cd ./packages/ui/certd-client/dist && zip -r ../../../ui.zip .
|
|
||||||
cd $rootDir
|
|
||||||
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
|
||||||
pnpm install
|
|
||||||
npm run publish_to_atomgit
|
|
||||||
working-directory: ./
|
|
||||||
|
|
||||||
- name: publish_to_gitee
|
|
||||||
id: publish_to_gitee
|
|
||||||
run: |
|
|
||||||
export GITEE_TOKEN=${{ secrets.GITEE_TOKEN }}
|
|
||||||
pnpm install
|
|
||||||
npm run publish_to_gitee
|
|
||||||
working-directory: ./
|
|
||||||
@@ -1 +1 @@
|
|||||||
2
|
3
|
||||||
|
|||||||
Reference in New Issue
Block a user