chore: use working-directory

This commit is contained in:
DIYgod
2025-04-13 12:58:52 +08:00
parent 53e492ab67
commit 8a985edf47
3 changed files with 18 additions and 27 deletions
+10 -15
View File
@@ -124,20 +124,17 @@ jobs:
- name: Install dependencies
run: pnpm i
- name: Update main hash
run: |
cd apps/desktop
pnpm update:main-hash
working-directory: apps/desktop
run: pnpm update:main-hash
- name: Build - Vite
run: |
cd apps/desktop
pnpm build:electron-vite ${{ env.PROD == 'false' && '--mode staging' || '' }}
working-directory: apps/desktop
run: pnpm build:electron-vite ${{ env.PROD == 'false' && '--mode staging' || '' }}
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
- name: Build - Windows and Linux
if: runner.os != 'macOS'
run: |
cd apps/desktop
pnpm build:electron-forge ${{ env.PROD == 'false' && '--mode=staging' || '' }}
working-directory: apps/desktop
run: pnpm build:electron-forge ${{ env.PROD == 'false' && '--mode=staging' || '' }}
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
@@ -166,15 +163,13 @@ jobs:
OSX_SIGN_IDENTITY: ${{ secrets.OSX_SIGN_IDENTITY_MAS }}
OSX_SIGN_PROVISIONING_PROFILE_PATH: ${{ runner.temp }}/build_pp.provisionprofile
BUILD_VERSION: ${{ github.event.inputs.build_version }}
run: |
cd apps/desktop
pnpm build:electron-forge:mas
working-directory: apps/desktop
run: pnpm build:electron-forge:mas
- name: Build - Renderer
if: runner.os == 'Linux'
run: |
cd apps/desktop
pnpm build:render
working-directory: apps/desktop
run: pnpm build:render
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
+4 -6
View File
@@ -69,9 +69,8 @@ jobs:
run: pnpm install
- name: 🔨 Build iOS IPA
run: |
cd apps/mobile
eas build --platform ios --profile development --non-interactive --local --output=./build.ipa
working-directory: apps/mobile
run: eas build --platform ios --profile development --non-interactive --local --output=./build.ipa
env:
CI: true
@@ -116,9 +115,8 @@ jobs:
run: pnpm install
- name: 🔨 Build iOS IPA
run: |
cd apps/mobile
eas build --platform ios --profile ios-simulator --non-interactive --local --output=./build-simulator.ipa
working-directory: apps/mobile
run: eas build --platform ios --profile ios-simulator --non-interactive --local --output=./build-simulator.ipa
env:
CI: true
+4 -6
View File
@@ -74,9 +74,8 @@ jobs:
run: pnpm install
- name: 🔨 Build iOS IPA
run: |
cd apps/mobile
eas build --platform ios --profile ${{ github.event.inputs.profile || 'preview' }} --non-interactive --local --output=./build.ipa
working-directory: apps/mobile
run: eas build --platform ios --profile ${{ github.event.inputs.profile || 'preview' }} --non-interactive --local --output=./build.ipa
env:
CI: true
@@ -95,6 +94,5 @@ jobs:
- name: Submit to App Store
if: github.event.inputs.profile == 'production'
run: |
cd apps/mobile
eas submit --platform ios --path build.ipa --non-interactive
working-directory: apps/mobile
run: eas submit --platform ios --path build.ipa --non-interactive