Enhance CI and release workflows for improved efficiency
- Updated CI workflow to trigger on specific paths for pushes and pull requests, ensuring relevant changes are monitored. - Integrated retry logic in the release workflow for macOS packaging to enhance reliability during the build process.
This commit is contained in:
parent
09c1304c82
commit
e2670a3a02
2 changed files with 26 additions and 1 deletions
20
.github/workflows/ci.yml
vendored
20
.github/workflows/ci.yml
vendored
|
|
@ -3,8 +3,28 @@ name: CI
|
|||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'test/**'
|
||||
- 'package.json'
|
||||
- 'pnpm-lock.yaml'
|
||||
- 'tsconfig*.json'
|
||||
- 'vite*.config.*'
|
||||
- 'vitest*.config.*'
|
||||
- 'tailwind.config.*'
|
||||
- 'eslint.config.*'
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- 'src/**'
|
||||
- 'test/**'
|
||||
- 'package.json'
|
||||
- 'pnpm-lock.yaml'
|
||||
- 'tsconfig*.json'
|
||||
- 'vite*.config.*'
|
||||
- 'vitest*.config.*'
|
||||
- 'tailwind.config.*'
|
||||
- 'eslint.config.*'
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
|
|
|
|||
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
|
@ -33,6 +33,12 @@ jobs:
|
|||
run: pnpm build
|
||||
|
||||
- name: Package macOS
|
||||
uses: nick-fields/retry@v3
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
retry_wait_seconds: 10
|
||||
command: pnpm dist:mac --publish always
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||
|
|
@ -40,7 +46,6 @@ jobs:
|
|||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
|
||||
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||
run: pnpm dist:mac --publish always
|
||||
|
||||
package-win:
|
||||
runs-on: windows-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue