Skip to content

Commit

Permalink
github: use gnu grep on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed May 2, 2024
1 parent de1535f commit 31227e6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ jobs:
- run: find . -name "Podfile" -execdir pod install \;

- name: Build for iOS
id: build
run: |
flutter build ipa \
--dart-define=FLAVOR="App Store" \
Expand All @@ -93,7 +92,11 @@ jobs:
--dart-define=DIRTY="false" \
--export-options-plist=$HOME/export_options.plist
buildName=$(grep -oP "(?<=buildName = ').*(?=')" lib/data/version.dart)
- name: Move IPA
id: move
run: |
brew install grep
buildName=$(ggrep -oP "(?<=buildName = ').*(?=')" lib/data/version.dart)
export ipaPath="Saber_v${buildName}.ipa"
mv $(find $(pwd) -name "*.ipa") $ipaPath
echo "ipaPath=$ipaPath" >> $GITHUB_OUTPUT
Expand All @@ -106,8 +109,8 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: Saber-iOS-Archive
path: ${{ steps.build.outputs.ipaPath }}
path: ${{ steps.move.outputs.ipaPath }}

- name: Publish to App Store
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: app-store-connect publish --path ${{ steps.build.outputs.ipaPath }}
run: app-store-connect publish --path ${{ steps.move.outputs.ipaPath }}
3 changes: 2 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ jobs:
- name: Compress macOS build
id: compress
run: |
buildName=$(grep -oP "(?<=buildName = ').*(?=')" lib/data/version.dart)
brew install grep
buildName=$(ggrep -oP "(?<=buildName = ').*(?=')" lib/data/version.dart)
zipName="Saber_v${buildName}.app.zip"
echo "zipName=$zipName" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 31227e6

Please sign in to comment.