Skip to content

Commit 3db15d6

Browse files
authored
Merge pull request #122 from Lycoon/dev
trying to fix deploy
2 parents e440e7b + 3833094 commit 3db15d6

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/deploy-macos.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,8 @@ jobs:
3636
- name: Install dependencies
3737
run: npm install
3838

39-
- name: Build and sign .app with Tauri
39+
- name: Build .app with Tauri
4040
run: npm run tauri build -- --bundles app --target universal-apple-darwin
41-
env:
42-
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
4341

4442
- name: Embed provisioning profile
4543
run: |
@@ -48,6 +46,13 @@ jobs:
4846
2>/dev/null | head -n 1)
4947
cp "$PROFILE" "$APP_PATH/Contents/embedded.provisionprofile"
5048
49+
- name: Sign app
50+
run: |
51+
codesign --force --deep \
52+
--sign "${{ secrets.APPLE_SIGNING_IDENTITY }}" \
53+
--entitlements src-tauri/Entitlements.plist \
54+
"$APP_PATH"
55+
5156
- name: Build signed .pkg installer
5257
run: |
5358
xcrun productbuild \

.github/workflows/deploy-prod.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
NEXT_PUBLIC_API_URL=https://scriptio.app
4141
NEXT_PUBLIC_COMMIT_SHA=${{ env.COMMIT_SHA }}
4242
NEXT_PUBLIC_APP_VERSION=${{ env.APP_VERSION }}
43-
cache-from: type=gha
44-
cache-to: type=gha,mode=max
43+
cache-from: type=gha,scope=prod
44+
cache-to: type=gha,mode=max,scope=prod
4545

4646
deploy:
4747
runs-on: ubuntu-latest

.github/workflows/deploy-staging.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ jobs:
4040
NEXT_PUBLIC_API_URL=https://staging.scriptio.app
4141
NEXT_PUBLIC_COMMIT_SHA=${{ env.COMMIT_SHA }}
4242
NEXT_PUBLIC_APP_VERSION=${{ env.APP_VERSION }}
43-
cache-from: type=gha
44-
cache-to: type=gha,mode=max
43+
cache-from: type=gha,scope=staging
44+
cache-to: type=gha,mode=max,scope=staging
4545

4646
deploy:
4747
runs-on: ubuntu-latest

src-tauri/tauri.macos.conf.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
"bundle": {
44
"category": "Productivity",
55
"macOS": {
6-
"entitlements": "./Entitlements.plist",
7-
"signing": {
8-
"entitlements": "./Entitlements.plist"
9-
}
6+
"entitlements": "./Entitlements.plist"
107
}
118
}
129
}

0 commit comments

Comments
 (0)