Skip to content

Fix/set category(Hometopic) List fixed (#91) #18

Fix/set category(Hometopic) List fixed (#91)

Fix/set category(Hometopic) List fixed (#91) #18

name: Deploy Testflight
on:
push:
tags:
- testflight/v[0-9]+.[0-9]+.[0-9]+-*.[0-9]+
jobs:
deploy:
name: Execute fastlane for testflight
defaults:
run:
working-directory: Wastory
env:
GIT_TAG_NAME: ${{ github.ref_name }}
XCODE_VERSION: "16.0"
SCHEME_NAME: ${{ secrets.SCHEME_NAME }}
XCODEPROJ_NAME: ${{ secrets.XCODEPROJ_NAME }}
BUNDLE_IDENTIFIER: ${{ secrets.BUNDLE_IDENTIFIER }}
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
APP_STORE_CONNECT_API_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_API_KEY_CONTENT }}
TEAM_ID: ${{ secrets.TEAM_ID }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_DEPLOY_KEY: ${{ secrets.MATCH_DEPLOY_KEY }}
runs-on: macos-15
steps:
- name: Parse tag name
uses: actions-ecosystem/action-regex-match@v2
id: regex
with:
text: ${{ github.ref_name }}
regex: '^(testflight)\/v(\d+)\.(\d+)\.(\d+)-(release|debug)\.(\d+)$'
- uses: actions/checkout@v3
- run: |
sudo xcode-select -s /Applications/Xcode_${XCODE_VERSION}.app/Contents/Developer
ls
- name: Set version number and build number
run: |
echo "VERSION_NUMBER=${{ steps.regex.outputs.group2 }}.${{ steps.regex.outputs.group3 }}.${{ steps.regex.outputs.group4 }}" >> $GITHUB_ENV
echo "BUILD_NUMBER=${{ steps.regex.outputs.group6 }}" >> $GITHUB_ENV
- name: Install Ruby Dependencies
run: |
bundle install
bundle update fastlane
- name: Setup git ssh - repo mapping
uses: shaunco/ssh-agent@git-repo-mapping
with:
ssh-private-key: ${{ secrets.MATCH_DEPLOY_KEY }}
repo-mappings: github.com/wafflestudio/wafflestudio-apple-certificates
- name: Configure ssh agent
env:
GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no"
run: |
eval "$(ssh-agent -s)"
ssh-add - <<< "$MATCH_DEPLOY_KEY"
- name: Upload dev app to TestFlight
if: ${{ steps.regex.outputs.group1 == 'testflight' && steps.regex.outputs.group5 == 'debug' }}
run: |
bundle exec fastlane beta --env dev
- name: Upload prod app to TestFlight
if: ${{ steps.regex.outputs.group1 == 'testflight' && steps.regex.outputs.group5 == 'release' }}
run: |
bundle exec fastlane beta --env prod