Skip to content

Commit

Permalink
github: various fixes to workflows
Browse files Browse the repository at this point in the history
commit 31227e6
Author: Adil Hanney <[email protected]>
Date:   Thu May 2 08:20:02 2024 +0100

    github: use gnu grep on macos

commit de1535f
Author: Adil Hanney <[email protected]>
Date:   Thu May 2 08:01:42 2024 +0100

    github: fix grep text encoding on windows

commit 516b918
Author: Adil Hanney <[email protected]>
Date:   Thu May 2 07:59:29 2024 +0100

    github: install codemagic cli with pipx

commit 1d5c80f
Author: Adil Hanney <[email protected]>
Date:   Thu May 2 07:54:33 2024 +0100

    github: install codemagic cli with pipx
  • Loading branch information
adil192 committed May 2, 2024
1 parent f3bd769 commit 5721e01
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
architecture: x64

- name: Install Codemagic CLI Tools
run: pip3 install codemagic-cli-tools
run: |
brew install pipx
pipx install codemagic-cli-tools
- name: Setup keychain
run: |
Expand All @@ -82,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 @@ -91,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 @@ -104,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 }}
7 changes: 5 additions & 2 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
architecture: x64

- name: Install Codemagic CLI Tools
run: pip3 install codemagic-cli-tools
run: |
brew install pipx
pipx install codemagic-cli-tools
- name: Setup keychain
run: |
Expand Down Expand Up @@ -124,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
1 change: 1 addition & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
id: rename
shell: bash
run: |
export LC_ALL=en_US.utf8
buildName=$(grep -oP "(?<=buildName = ').*(?=')" lib/data/version.dart)
installerName="SaberInstaller_v${buildName}.exe"
echo "installerName=$installerName" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 5721e01

Please sign in to comment.