Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
The assembly for iOS has been returned.
  • Loading branch information
pixkk authored Mar 16, 2024
1 parent e9f2c1a commit 719f522
Showing 1 changed file with 45 additions and 46 deletions.
91 changes: 45 additions & 46 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,49 +67,48 @@ jobs:
with:
name: android
path: android/app/build/outputs/apk/release/app-release.apk

# ios:
# name: Build iOS platform
# runs-on: macos-latest
# needs: [build]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: dist
# path: dist
# - name: Set up Node.js ${{ env.NODE_VERSION }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ env.NODE_VERSION }}
# - name: Install dependencies
# run: npm i
# - name: Copy web assets to native platform
# run: npx cap copy ios
# - name: Update native platform
# run: npx cap update ios
# - name: Add empty `GoogleService-Info.plist`
# run: echo "$GOOGLE_SERVICE_INFO_PLIST" > ios/App/App/GoogleService-Info.plist
# env:
# GOOGLE_SERVICE_INFO_PLIST: ${{secrets.GOOGLE_SERVICE_INFO_PLIST}}
# - name: Build and archive with xcodebuild
# working-directory: ios
# run: xcodebuild
# -workspace App/App.xcworkspace
# -scheme App
# -archivePath App/build/App.xarchive
# clean build archive
# CODE_SIGN_IDENTITY=""
# CODE_SIGNING_REQUIRED=NO
# CODE_SIGNING_ALLOWED="NO"
# CODE_SIGN_ENTITLEMENTS=""
# - name: Make IPA
# run: mkdir Payload && mv ~/Library/Developer/Xcode/DerivedData/App-*/Build/Products/Debug-iphoneos/App.app/ Payload && zip -r Payload.zip Payload && mv Payload.zip VueTube.ipa
#
# - name: Upload artifacts
# uses: actions/upload-artifact@v2
# with:
# name: iOS
# path: VueTube.ipa
ios:
name: Build iOS platform
runs-on: macos-latest
needs: [build]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: dist
path: dist
- name: Set up Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm i
- name: Copy web assets to native platform
run: npx cap copy ios
- name: Update native platform
run: npx cap update ios
- name: Add empty `GoogleService-Info.plist`
run: echo "$GOOGLE_SERVICE_INFO_PLIST" > ios/App/App/GoogleService-Info.plist
env:
GOOGLE_SERVICE_INFO_PLIST: ${{secrets.GOOGLE_SERVICE_INFO_PLIST}}
- name: Build and archive with xcodebuild
working-directory: ios
run: xcodebuild
-workspace App/App.xcworkspace
-scheme App
-archivePath App/build/App.xarchive
clean build archive
CODE_SIGN_IDENTITY=""
CODE_SIGNING_REQUIRED=NO
CODE_SIGNING_ALLOWED="NO"
CODE_SIGN_ENTITLEMENTS=""
- name: Make IPA
run: mkdir Payload && mv ~/Library/Developer/Xcode/DerivedData/App-*/Build/Products/Debug-iphoneos/App.app/ Payload && zip -r Payload.zip Payload && mv Payload.zip VueTube.ipa

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: iOS
path: VueTube.ipa

0 comments on commit 719f522

Please sign in to comment.