commit ac285cbf4727666ce95474140611015536d30a53 Author: Rik Rogaar Date: Mon Sep 16 17:11:54 2024 +0200 test diff --git a/.gitea/workflows/build-upload-ios.yml b/.gitea/workflows/build-upload-ios.yml new file mode 100644 index 0000000..d4fc91a --- /dev/null +++ b/.gitea/workflows/build-upload-ios.yml @@ -0,0 +1,57 @@ +name: Build source code on ios + +on: + push: + tags: + - '*' + +jobs: + build_ios: + runs-on: macOS-latest + steps: + - uses: actions/checkout@v4 + - name: Use Node.js 20 + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: npm + - name: Install dependencies + id: install_code + run: npm ci + - name: Build + id: build_code + run: npm run build + - name: Build + id: build_code + run: npm run mobile + - uses: actions/cache@v3 + with: + path: ios/App/Pods + key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} + restore-keys: | + ${{ runner.os }}-pods- + - name: Sync + id: sync_code + run: npx cap sync + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' + bundler-cache: true + - uses: maierj/fastlane-action@v3.1.0 + env: + APP_STORE_CONNECT_TEAM_ID: ${{ secrets.APP_STORE_CONNECT_TEAM_ID }} + BUNDLE_IDENTIFIER: ${{ secrets.BUNDLE_IDENTIFIER }} + BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }} + BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.BUILD_PROVISION_PROFILE_BASE64 }} + APPLE_KEY_ID: ${{ secrets.APPLE_KEY_ID }} + APPLE_ISSUER_ID: ${{ secrets.APPLE_ISSUER_ID }} + APPLE_KEY_CONTENT: ${{ secrets.APPLE_KEY_CONTENT }} + APPLE_PROFILE_NAME: ${{ secrets.APPLE_PROFILE_NAME }} + with: + lane: ios beta + - name: Upload release bundle + uses: actions/upload-artifact@v4 + with: + name: ios-release + path: ./App.ipa + retention-days: 10 \ No newline at end of file