mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-01 17:50:50 +08:00
fix: ci
This commit is contained in:
@@ -424,12 +424,10 @@ jobs:
|
|||||||
if: >-
|
if: >-
|
||||||
${{
|
${{
|
||||||
always() &&
|
always() &&
|
||||||
inputs.desktop_macos &&
|
(inputs.desktop_macos || inputs.desktop_linux || inputs.desktop_windows) &&
|
||||||
inputs.desktop_linux &&
|
|
||||||
inputs.desktop_windows &&
|
|
||||||
needs.before-make.result == 'success' &&
|
needs.before-make.result == 'success' &&
|
||||||
needs.make-distribution-macos.result == 'success' &&
|
(!inputs.desktop_macos || needs.make-distribution-macos.result == 'success') &&
|
||||||
needs.make-distribution-linux.result == 'success' &&
|
(!inputs.desktop_linux || needs.make-distribution-linux.result == 'success') &&
|
||||||
(
|
(
|
||||||
!inputs.require-windows-signing ||
|
!inputs.require-windows-signing ||
|
||||||
(
|
(
|
||||||
@@ -457,11 +455,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- name: Download Artifacts (macos-x64)
|
- name: Download Artifacts (macos-x64)
|
||||||
|
if: ${{ inputs.desktop_macos }}
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: affine-darwin-x64-builds
|
name: affine-darwin-x64-builds
|
||||||
path: ./release
|
path: ./release
|
||||||
- name: Download Artifacts (macos-arm64)
|
- name: Download Artifacts (macos-arm64)
|
||||||
|
if: ${{ inputs.desktop_macos }}
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: affine-darwin-arm64-builds
|
name: affine-darwin-arm64-builds
|
||||||
@@ -479,6 +479,7 @@ jobs:
|
|||||||
name: affine-win32-arm64-builds
|
name: affine-win32-arm64-builds
|
||||||
path: ./release
|
path: ./release
|
||||||
- name: Download Artifacts (linux-x64)
|
- name: Download Artifacts (linux-x64)
|
||||||
|
if: ${{ inputs.desktop_linux }}
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: affine-linux-x64-builds
|
name: affine-linux-x64-builds
|
||||||
|
|||||||
@@ -109,6 +109,9 @@ jobs:
|
|||||||
- uses: maxim-lobanov/setup-xcode@v1
|
- uses: maxim-lobanov/setup-xcode@v1
|
||||||
with:
|
with:
|
||||||
xcode-version: 26.2
|
xcode-version: 26.2
|
||||||
|
- uses: ruby/setup-ruby@v1
|
||||||
|
with:
|
||||||
|
ruby-version: '3.3'
|
||||||
- name: Install Swiftformat
|
- name: Install Swiftformat
|
||||||
run: brew install swiftformat
|
run: brew install swiftformat
|
||||||
- name: Cap sync
|
- name: Cap sync
|
||||||
@@ -131,8 +134,10 @@ jobs:
|
|||||||
printf '%s' "$BUILD_PROVISION_PROFILE" | base64 --decode -o "$PP_PATH"
|
printf '%s' "$BUILD_PROVISION_PROFILE" | base64 --decode -o "$PP_PATH"
|
||||||
mkdir -p "$HOME/Library/MobileDevice/Provisioning Profiles"
|
mkdir -p "$HOME/Library/MobileDevice/Provisioning Profiles"
|
||||||
cp "$PP_PATH" "$HOME/Library/MobileDevice/Provisioning Profiles"
|
cp "$PP_PATH" "$HOME/Library/MobileDevice/Provisioning Profiles"
|
||||||
fastlane beta
|
bundle install
|
||||||
|
bundle exec fastlane beta
|
||||||
env:
|
env:
|
||||||
|
BUNDLE_PATH: vendor/bundle
|
||||||
BUILD_TARGET: distribution
|
BUILD_TARGET: distribution
|
||||||
BUILD_PROVISION_PROFILE: ${{ secrets.BUILD_PROVISION_PROFILE }}
|
BUILD_PROVISION_PROFILE: ${{ secrets.BUILD_PROVISION_PROFILE }}
|
||||||
PP_PATH: ${{ runner.temp }}/build_pp.mobileprovision
|
PP_PATH: ${{ runner.temp }}/build_pp.mobileprovision
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ jobs:
|
|||||||
desktop_macos: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_macos }}
|
desktop_macos: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_macos }}
|
||||||
desktop_windows: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_windows }}
|
desktop_windows: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_windows }}
|
||||||
desktop_linux: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_linux }}
|
desktop_linux: ${{ github.event_name != 'workflow_dispatch' || inputs.desktop_linux }}
|
||||||
require-windows-signing: ${{ needs.prepare.outputs.BUILD_TYPE == 'beta' || needs.prepare.outputs.BUILD_TYPE == 'stable' || (github.event_name == 'workflow_dispatch' && inputs.desktop_windows) }}
|
require-windows-signing: ${{ needs.prepare.outputs.BUILD_TYPE == 'stable' || (github.event_name == 'workflow_dispatch' && inputs.desktop_windows) }}
|
||||||
|
|
||||||
mobile:
|
mobile:
|
||||||
name: Release Mobile
|
name: Release Mobile
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
source "https://rubygems.org"
|
source "https://rubygems.org"
|
||||||
|
|
||||||
gem "fastlane"
|
gem "fastlane", ">= 2.236.1", "< 3.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user