Fix/UI t 263 sm devices check #426
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release beta | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- develop | |
types: [closed] | |
env: | |
BUILD_NUMBER: ${{ github.run_number }} | |
# Used by https://github.com/Microsoft/fastlane-plugin-appcenter | |
APPCENTER_API_TOKEN: ${{ secrets.APPCENTER_API_TOKEN }} | |
APPCENTER_OWNER_NAME: ${{ secrets.APPCENTER_OWNER_NAME }} | |
APPCENTER_OWNER_TYPE: ${{ secrets.APPCENTER_OWNER_TYPE }} | |
jobs: | |
release_beta_ios: | |
name: iOS (beta) | |
environment: beta | |
runs-on: macos-14 | |
if: | |
github.event_name == 'workflow_dispatch' || (startsWith(github.head_ref, 'release/') && github.event.pull_request.merged == | |
true) | |
steps: | |
- name: Notarize Release Build | |
uses: apple-actions/import-codesign-certs@v1 | |
with: | |
p12-file-base64: ${{ secrets.CERTIFICATES_P12 }} | |
p12-password: ${{ secrets.CERTIFICATES_P12_PASSWORD }} | |
- uses: actions/checkout@v3 | |
- uses: nyaa8/package-version@v1 | |
name: Fetch current version | |
- name: Create .env file | |
run: | | |
touch .env | |
echo NODE_ENV=beta >> .env | |
echo REACT_NATIVE_APP_AUTH0_DOMAIN="${{ secrets.AUTH0_DOMAIN }}" >> .env | |
echo REACT_NATIVE_APP_AUTH0_AUDIENCE="${{ secrets.AUTH0_AUDIENCE }}" >> .env | |
echo REACT_NATIVE_APP_AUTH0_SCHEME="${{ secrets.AUTH0_SCHEME }}" >> .env | |
echo REACT_NATIVE_APP_AUTH0_CLIENT_ID="${{ secrets.AUTH0_CLIENT_ID }}" >> .env | |
echo REACT_NATIVE_APP_ENCRYPTION_KEY="${{ secrets.ENCRYPTION_KEY }}" >> .env | |
echo API_HOST="${{ secrets.API_HOST }}" >> .env | |
echo API_HOST_UITDATABANK="${{ secrets.API_HOST_UITDATABANK }}" >> .env | |
echo APP_NAME="${{ secrets.APP_NAME }}" >> .env | |
echo SENTRY_DSN="${{ secrets.SENTRY_DSN }}" >> .env | |
echo REACT_NATIVE_APP_VERSION_NR="${{ env.PACKAGE_VERSION }}" >> .env | |
cat .env | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Restore Pods cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
ios/Pods | |
~/Library/Caches/CocoaPods | |
~/.cocoapods | |
key: ${{ runner.os }}-pods-${{ hashFiles('ios/Podfile.lock') }} | |
restore-keys: | | |
${{ runner.os }}-pods- | |
- name: Install pods | |
run: cd ios && pod install | |
- run: fastlane ios_beta | |
release_beta_android: | |
name: Android (beta) | |
environment: beta | |
runs-on: macos-14 | |
if: | |
github.event_name == 'workflow_dispatch' || (startsWith(github.head_ref, 'release/') && github.event.pull_request.merged == | |
true) | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.BRANCH }} | |
- uses: nyaa8/package-version@v1 | |
name: Fetch current version | |
- name: Create .env file | |
run: | | |
touch .env | |
echo NODE_ENV=beta >> .env | |
echo REACT_NATIVE_APP_AUTH0_DOMAIN="${{ secrets.AUTH0_DOMAIN }}" >> .env | |
echo REACT_NATIVE_APP_AUTH0_AUDIENCE="${{ secrets.AUTH0_AUDIENCE }}" >> .env | |
echo REACT_NATIVE_APP_AUTH0_SCHEME="${{ secrets.AUTH0_SCHEME }}" >> .env | |
echo REACT_NATIVE_APP_AUTH0_CLIENT_ID="${{ secrets.AUTH0_CLIENT_ID }}" >> .env | |
echo REACT_NATIVE_APP_ENCRYPTION_KEY="${{ secrets.ENCRYPTION_KEY }}" >> .env | |
echo API_HOST="${{ secrets.API_HOST }}" >> .env | |
echo API_HOST_UITDATABANK="${{ secrets.API_HOST_UITDATABANK }}" >> .env | |
echo APP_NAME="${{ secrets.APP_NAME }}" >> .env | |
echo SENTRY_DSN="${{ secrets.SENTRY_DSN }}" >> .env | |
echo REACT_NATIVE_APP_VERSION_NR="${{ env.PACKAGE_VERSION }}" >> .env | |
cat .env | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 17 | |
cache: gradle | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- run: fastlane android_beta | |
create_release: | |
name: Create release | |
needs: [release_beta_ios, release_beta_android] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ env.BRANCH }} | |
- uses: nyaa8/package-version@v1 | |
name: Fetch current version | |
- name: Run latest-tag | |
uses: EndBug/latest-tag@latest | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: true | |
tag_name: ${{ env.PACKAGE_VERSION }} |