mirror of
https://github.com/ivabus/gui
synced 2025-04-24 06:27:09 +03:00
include auto notarize
This commit is contained in:
parent
b38043868b
commit
b42a05b9b5
1 changed files with 24 additions and 23 deletions
47
.github/workflows/ci.yml
vendored
47
.github/workflows/ci.yml
vendored
|
@ -128,14 +128,15 @@ jobs:
|
||||||
path: |
|
path: |
|
||||||
./pnpm
|
./pnpm
|
||||||
- name: build
|
- name: build
|
||||||
# if: startsWith(matrix.platform.name, 'darwin')
|
if: startsWith(matrix.platform.name, 'darwin')
|
||||||
# # FROM: https://tauri.app/v1/guides/distribution/sign-macos
|
run: tea -ES xc build
|
||||||
env:
|
env:
|
||||||
|
CSC_FOR_PULL_REQUEST: true
|
||||||
CSC_LINK: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
CSC_LINK: ${{ secrets.GUI_APPLE_CERTIFICATE }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.GUI_APPLE_CERTIFICATE_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.GUI_APPLE_CERTIFICATE_PASSWORD }}
|
||||||
CSC_NAME: ${{ secrets.APPLE_IDENTITY_NO_PREFIX }}
|
CSC_NAME: ${{ secrets.APPLE_IDENTITY_NO_PREFIX }}
|
||||||
CSC_FOR_PULL_REQUEST: true
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
run: tea -ES xc build
|
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
- run: mkdir -p target
|
- run: mkdir -p target
|
||||||
- run: cp ./modules/desktop/dist/*.dmg ./target/tea.dmg
|
- run: cp ./modules/desktop/dist/*.dmg ./target/tea.dmg
|
||||||
- run: cp ./modules/desktop/dist/*.zip ./target/tea.zip
|
- run: cp ./modules/desktop/dist/*.zip ./target/tea.zip
|
||||||
|
@ -147,26 +148,26 @@ jobs:
|
||||||
path: artifacts.tgz
|
path: artifacts.tgz
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
notorize_tauri:
|
# notorize_tauri:
|
||||||
needs: [build_desktop]
|
# needs: [build_desktop]
|
||||||
runs-on: macos-11
|
# runs-on: macos-11
|
||||||
strategy:
|
# strategy:
|
||||||
matrix:
|
# matrix:
|
||||||
platform:
|
# platform:
|
||||||
- darwin+x86-64
|
# - darwin+x86-64
|
||||||
- darwin+aarch64
|
# - darwin+aarch64
|
||||||
steps:
|
# steps:
|
||||||
- uses: actions/download-artifact@v3
|
# - uses: actions/download-artifact@v3
|
||||||
with:
|
# with:
|
||||||
name: ${{ matrix.platform }}
|
# name: ${{ matrix.platform }}
|
||||||
|
|
||||||
- run: tar xzf artifacts.tgz
|
# - run: tar xzf artifacts.tgz
|
||||||
|
|
||||||
# Notarize. Can take up to 10 minutes (and fail) asynchronously
|
# # Notarize. Can take up to 10 minutes (and fail) asynchronously
|
||||||
- run: xcrun altool --notarize-app --username "$APPLE_ID" --password "$APPLE_PASSWORD" --primary-bundle-id "xyz.tea.gui" --file ./tea.zip
|
# - run: xcrun altool --notarize-app --username "$APPLE_ID" --password "$APPLE_PASSWORD" --primary-bundle-id "xyz.tea.gui" --file ./tea.zip
|
||||||
env:
|
# env:
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
# APPLE_ID: ${{ secrets.APPLE_ID }}
|
||||||
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
# APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
||||||
|
|
||||||
# build_tauri:
|
# build_tauri:
|
||||||
# needs: changes
|
# needs: changes
|
||||||
|
@ -231,7 +232,7 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
needs: [notorize_tauri]
|
needs: [build_desktop]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
Loading…
Reference in a new issue