Skip to content

Commit

Permalink
Fixed workflow issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkedzierski committed Jul 23, 2024
1 parent 505c253 commit 1538b2f
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/build-release-without-signing.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build release without signing - Android and iOS # I don't have dev accounts for both platforms 😅
name: Build release without signing - Android and iOS

on:
pull_request:
Expand Down Expand Up @@ -88,60 +88,60 @@ jobs:
path: app/build/outputs/apk/release/app-release.apk

build-ios:
runs-on: macos-latest
environment: production

steps:
- name: checkout
uses: actions/checkout@v4

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
runs-on: macos-latest
environment: production

steps:
- name: checkout
uses: actions/checkout@v4

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
with:
path: ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: 'Create .env file for iOS'
run: |
touch .env
echo OPEN_WEATHER_API_KEY=${{ secrets.OPEN_WEATHER_API_KEY }} >> .env
echo OPEN_WEATHER_BASE_URL=${{ secrets.OPEN_WEATHER_BASE_URL }} >> .env
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4
bundler: 2.5.11

- name: Cache Ruby dependencies
uses: actions/cache@v3
with:
path: |
vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Install Dependencies
run: yarn bootstrap

- uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
with:
path: ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: 'Create .env file for iOS'
run: |
touch .env
echo OPEN_WEATHER_API_KEY=${{ secrets.OPEN_WEATHER_API_KEY }} >> .env
echo OPEN_WEATHER_BASE_URL=${{ secrets.OPEN_WEATHER_BASE_URL }} >> .env
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.4
bundler: 2.5.11

- name: Cache Ruby dependencies
uses: actions/cache@v3
with:
path: |
vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Install dependencies
run: |
gem install bundler
bundle install
- name: Install Dependencies
run: yarn bootstrap

- name: Run Fastlane for iOS
run: yarn fastlane:build:ios
- name: Run Fastlane for iOS
run: yarn fastlane:build:ios

0 comments on commit 1538b2f

Please sign in to comment.