Skip to content

Merge pull request #34 from tarappo/upload_test_flight #12

Merge pull request #34 from tarappo/upload_test_flight

Merge pull request #34 from tarappo/upload_test_flight #12

Workflow file for this run

name: iOS Release
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Cache bundle directory
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-gem-${{ hashFiles('Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gem-
- name: Setup
shell: bash
id: setup
run: |
bundle config set path 'vendor/bundle'
bundle install
- name: Build iOS App
shell: bash
id: build-app-file
run: |
bundle exec fastlane build_for_simulator
cd build/Build/Products/Debug-iphonesimulator/
zip -r ci-sample.zip ci-sample.app/
- name: Release note
id: release_note
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish: true
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.release_note.outputs.upload_url }}
asset_path: build/Build/Products/Debug-iphonesimulator/ci-sample.zip
asset_name: ci-sample.zip
asset_content_type: application/zip