Skip to content

Commit

Permalink
feat(added build ios yaml)
Browse files Browse the repository at this point in the history
Co-authored-by: Sebastian Palmqvist <[email protected]>
  • Loading branch information
coolusername244 and PalmN72 committed Oct 18, 2023
1 parent da3dabb commit d0917a6
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/build-ios.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# If setting a specific version, wrap it with single quotes like '12.0'
# to pass it as string because GitHub trimmes trailing .0 from numbers
# due to https://github.com/actions/runner/issues/849

name: build-and-ship-ios
on:
push:
branches:
- 'main'
jobs:
build-and-ship-ios:
runs-on: macos-13
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/apps/skolplattformen-app-new/Gemfile
steps:
- uses: actions/checkout@v3
with:
# changed this from GITHUB_PERSONAL_ACCESS_TOKEN_PATH to GITHUB_TOKEN
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.3.1'
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.1.2'
bundler-cache: true
- uses: actions/setup-node@v3
with:
node-version: '18.13'
cache: 'npm'
cache-dependency-path: ${{ github.workspace }}/apps/skolplattformen-app-new/package-lock.json
- uses: actions/cache@v3
with:
path: ${{ github.workspace }}/apps/skolplattformen-app-new/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: set npm version
run: npm install -g [email protected]
- name: install node modules
run: cd apps/skolplattformen-app-new && npm ci
- run: cd apps/skolplattformen-app-new/ios && bundle install
- run: cd apps/skolplattformen-app-new/ios && npx pod-install
- run: cd apps/skolplattformen-app-new/ios && bundle exec pod update hermes-engine --no-repo-update
- run: cd apps/skolplattformen-app-new/ios && export && bundle exec fastlane ios beta version:patch
env:
ASCAPI_KEY_CONTENT: ${{ secrets.ASCAPI_KEY_CONTENT }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
ENVFILE: ${{env.ENVFILE}}

0 comments on commit d0917a6

Please sign in to comment.