update build stuff

This commit is contained in:
Violet Caulfield
2025-02-05 21:17:54 -06:00
parent 21c86325b1
commit 4582e0b7a5
3 changed files with 32 additions and 21 deletions
+9 -6
View File
@@ -7,19 +7,22 @@ jobs:
build-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: 🛒 Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
- name: 🖥 Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Echo package.json version to Github ENV
- name: 💬 Echo package.json version to Github ENV
run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
- run: npm run init
- name: 🔵 Run npm run init
run: npm run init
- run: fastlane build
working-directory: ./ios
- name: 🚀 Run fastlane build
run: npm run fastlane:ios:build
env:
# FASTLANE_PASSWORD: ${{ secrets.FASTLANE_PASSWORD }}
APPSTORE_CONNECT_API_KEY_JSON: ${{ secrets.APPSTORE_CONNECT_API_KEY_JSON }}
+20 -14
View File
@@ -8,25 +8,28 @@ jobs:
publish-ios-beta:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.SIGNING_REPO_PAT }}
- uses: actions/setup-node@v4
- name: 🖥 Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Echo package.json version to Github ENV
- name: 💬 Echo package.json version to Github ENV
run: echo VERSION_NUMBER=$(npm version minor --tag-version-prefix="" --no-commit-hooks) >> $GITHUB_ENV
- run: npm run init
- name: 🔵 Run npm run init
run: npm run init
- name: Output App Store Connect API Key JSON to Fastlane
- name: 🤫 Output App Store Connect API Key JSON to Fastlane
run: echo -e '${{ secrets.APPSTORE_CONNECT_API_KEY_JSON }}' > appstore_connect_api_key.json
working-directory: ./ios/fastlane
- run: fastlane beta
working-directory: ./ios
- name: 🚀 Run fastlane build and publish to TestFlight
run: npm run fastlane:ios:beta
env:
APPSTORE_CONNECT_API_KEY_JSON: ${{ secrets.APPSTORE_CONNECT_API_KEY_JSON }}
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: ${{ secrets.FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD }}
@@ -34,15 +37,18 @@ jobs:
MATCH_REPO_PAT: "anultravioletaurora:${{ secrets.SIGNING_REPO_PAT }}"
# Commit Fastlane Xcode build number increment
- uses: stefanzweifel/git-auto-commit-action@v5
- name: 🔢 Commit Xcode build number increment
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "[skip actions]"
file_pattern: "ios/Jellify.xcodeproj/project.pbxproj"
tagging_message: ${{ env.VERSION_NUMBER }}
- name: Create Github Release
uses: elgohr/Github-Release-Action@v5
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 🎉 Create Github release
uses: ncipollo/release-action@v1
with:
title: "Jellify - ${{ env.VERSION_NUMBER }}"
tag: ${{ env.VERSION_NUMBER }}
artifacts: "Jellify.ipa"
name: "Jellify - ${{ env.VERSION_NUMBER }}"
prerelease: true
tag: ${{ env.VERSION_NUMBER }}
token: ${{ secrets.GITHUB_TOKEN }}