Skip to content

Add Runimal release workflow #1

Add Runimal release workflow

Add Runimal release workflow #1

name: Runimal Release

Check failure on line 1 in .github/workflows/runimal-release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/runimal-release.yml

Invalid workflow file

(Line: 40, Col: 13): Unrecognized named-value: 'secrets'. Located at position 76 within expression: github.event_name == 'workflow_dispatch' && inputs.upload_to_testflight && secrets.ASC_KEY_ID != '' && secrets.ASC_ISSUER_ID != '' && secrets.ASC_PRIVATE_KEY_BASE64 != ''
on:
workflow_dispatch:
inputs:
upload_to_testflight:
description: Upload exported IPA to TestFlight
required: false
type: boolean
default: false
push:
branches:
- master
jobs:
build:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode.app
- name: Generate Project
run: xcodegen generate
- name: Build iPhone
run: xcodebuild -project RunimalApple.xcodeproj -scheme RunimalPhone -destination 'generic/platform=iOS' build
- name: Build Watch
run: xcodebuild -project RunimalApple.xcodeproj -scheme RunimalWatch -destination 'generic/platform=watchOS' build
- name: Archive And Export
if: github.event_name == 'workflow_dispatch'
env:
TEAM_ID: ${{ secrets.DEVELOPMENT_TEAM_ID }}
run: ./scripts/release/testflight_archive.sh
- name: Upload To TestFlight
if: github.event_name == 'workflow_dispatch' && inputs.upload_to_testflight && secrets.ASC_KEY_ID != '' && secrets.ASC_ISSUER_ID != '' && secrets.ASC_PRIVATE_KEY_BASE64 != ''
env:
ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
ASC_PRIVATE_KEY_BASE64: ${{ secrets.ASC_PRIVATE_KEY_BASE64 }}
run: ./scripts/release/upload_to_testflight.sh