mirror of
https://github.com/certd/certd.git
synced 2026-04-14 12:30:54 +08:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: publish-atomgit
|
||
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
|
||
|
||
- run: |
|
||
npm install -g pnpm
|
||
pnpm install
|
||
npm run build
|
||
working-directory: ./packages/ui/certd-client
|
||
- name: zip_front
|
||
id: zip_front
|
||
run: |
|
||
rm -rf ./packages/ui/certd-client/dist/**/*.gz
|
||
zip -r ui.zip ./packages/ui/certd-client/dist
|
||
|
||
- name: publish_to_atomgit
|
||
id: publish_to_atomgit
|
||
run: |
|
||
export ATOMGIT_TOKEN=${{ secrets.ATOMGIT_TOKEN }}
|
||
npm run publish_to_atomgit
|
||
working-directory: ./ |