diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0420a02a..c273b9bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,55 +61,55 @@ jobs: run: npx cap update android - name: Build with Gradle working-directory: android - run: chmod +x gradlew; ./gradlew build -x lint -x test + run: chmod +x gradlew; ./gradlew build clean assembleRelease -x lint -x test - name: Upload artifacts uses: actions/upload-artifact@v2 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