Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cranci1 committed Mar 30, 2024
1 parent 408f8e1 commit 5861527
Showing 1 changed file with 33 additions and 29 deletions.
62 changes: 33 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,38 @@
name: Nightly Build
name: Build and Release IPA

on:
- "push"
- "workflow_dispatch"
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:

runs-on: macos-13

runs-on: macos-latest

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Fetch Commit Info
id: commitinfo
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Build iOS
run: xcodebuild -workspace "AnimeGen.xcworkspace" -scheme AnimeGen -configuration Release -destination generic/platform=iOS archive -archivePath "build/AnimeGen_Nightly.iOS.xcarchive" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
- name: Package iOS
run: ./Misc/scripts/package.sh "build/AnimeGen_Nightly.iOS.xcarchive" iOS "AnimeGen_Nightly.${{ steps.commitinfo.outputs.sha_short }}.iOS"
- name: Upload iOS Symbols
run: ./Misc/scripts/upload_symbols.sh ${{ secrets.APPCENTER_TOKEN }}
- name: Upload iOS Artifacts
uses: actions/upload-artifact@v2
with:
name: AnimeGen_Nightly.${{ steps.commitinfo.outputs.sha_short }}.iOS
path: build/*
if-no-files-found: error
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Xcode
uses: actions/setup-xcode@v2
with:
xcode-version: '13.x'

- name: Install CocoaPods
run: |
gem install cocoapods
pod install --repo-update
- name: Build IPA
run: |
xcodebuild -project AnimeGen.xcodeproj -scheme AnimeGen -configuration Release -destination 'generic/platform=iOS' clean archive -archivePath $PWD/build/AnimeGen.xcarchive
xcodebuild -exportArchive -archivePath $PWD/build/AnimeGen.xcarchive -exportOptionsPlist ExportOptions.plist -exportPath $PWD/build
- name: Archive and Upload Artifact
uses: actions/upload-artifact@v2
with:
name: AnimeGen-IPA
path: $PWD/build/*.ipa

0 comments on commit 5861527

Please sign in to comment.