Skip to content

Commit

Permalink
Update build workflow, add release workflow, update git fullname in f…
Browse files Browse the repository at this point in the history
…astfile
  • Loading branch information
magkue committed Nov 4, 2024
1 parent 49759ee commit ac87b18
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 16 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-and-test-ios-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: build-and-test-ios-app

on:
push:
branches-ignore:
- main
- develop
workflow_call:
workflow_dispatch:

jobs:
build:
permissions:
contents: read
runs-on: [self-hosted, macOS]
steps:
- uses: actions/checkout@v2

- name: Update Bundler
run: bundle update

- name: Check static code quality of iOS App
run: bundle exec fastlane swift_lint

- name: Run Unit and UI Tests
run: bundle exec fastlane test

- name: Build iOS App
run: bundle exec fastlane build
env:
BUILD_NUMBER: ${{ github.run_number }}
IOS_MATCH_GITLAB_AUTH: ${{ secrets.IOS_MATCH_GITLAB_AUTH }}
IOS_KEYCHAIN_PASSWORD: ${{ secrets.IOS_KEYCHAIN_PASSWORD }}
IOS_APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.IOS_APP_STORE_CONNECT_API_KEY_KEY_ID }}
IOS_APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.IOS_APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
IOS_APP_STORE_CONNECT_API_KEY_PASSWORD: ${{ secrets.IOS_APP_STORE_CONNECT_API_KEY_PASSWORD }}
MATCH_PASSWORD: ${{ secrets.IOS_MATCH_PASSWORD }}
14 changes: 0 additions & 14 deletions .github/workflows/build-ios-app.yml

This file was deleted.

26 changes: 26 additions & 0 deletions .github/workflows/release-ios-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release-ios-app

on:
push:
branches:
- develop
workflow_dispatch:

jobs:
build:
permissions:
contents: read
uses: ./.github/workflows/build-and-test-ios-app.yml

release:
needs: build
runs-on: [self-hosted, macOS]
steps:
- uses: actions/checkout@v2

- name: Upload iOS App to TestFlight
run: bundle exec fastlane upload_to_testflight
env:
IOS_APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.IOS_APP_STORE_CONNECT_API_KEY_KEY_ID }}
IOS_APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.IOS_APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
IOS_APP_STORE_CONNECT_API_KEY_PASSWORD: ${{ secrets.IOS_APP_STORE_CONNECT_API_KEY_PASSWORD }}
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ platform :ios do
type: "appstore",
api_key: api_key,
git_branch: "main", # branch to store and get certificates from
git_full_name: "fastlane_match",
git_full_name: "Artemis IOS",
clone_branch_directly: true, # optional
git_user_email: "ls1.itg@in.tum.de",
git_url: "https://gitlab.lrz.de/ase/ipraktikum/match-code-signing",
Expand Down Expand Up @@ -116,7 +116,7 @@ platform :ios do
cloned_source_packages_path: ".SwiftPackages", # Custom path for cloning source packages to
derived_data_path: ".DerivedData", # Custom derived data path
output_directory: "./build", # Directory where the output artifacts are generated
scheme: "Artemis", # We want to build the "HallOfFame" scheme
scheme: "Artemis",
xcargs: "-skipMacroValidation -skipPackagePluginValidation"
)
end
Expand Down

0 comments on commit ac87b18

Please sign in to comment.