Skip to content

Commit

Permalink
feat(CICD)(ios): upload ipa for testing purposes + feat(webpack): ren…
Browse files Browse the repository at this point in the history
…ame config files
  • Loading branch information
azarz committed Nov 30, 2023
1 parent f6fd407 commit 8f23bc9
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 83 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/android-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@ jobs:
uses: actions/checkout@v3

- name: Make envfile
uses: SpicyPizza/create-envfile@v1.3
with:
directory: .
file_name: .env
envkey_GPF_key: ${{ secrets.GPF_key }}
fail_on_empty: false
run: |
echo "GPF_key=${{ secrets.GPF_key }}" > .env
- name: Get the tagname
id: get_tagname
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/ios-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,23 @@ jobs:
echo -n "$EXPORT_PLIST" | base64 --decode --output $EXPORT_PLIST_PATH
cd ios/App && xcodebuild -exportArchive -archivePath $GITHUB_WORKSPACE/ign.xcarchive -exportOptionsPlist $EXPORT_PLIST_PATH -exportPath $RUNNER_TEMP/export
- name: Upload application
uses: actions/upload-artifact@v3
with:
name: app
path: ${{ runner.temp }}/export/App.ipa
retention-days: 3

- name: Decode auth api key file and save it
env:
API_KEY_BASE64: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
run: |
ls ~/private_keys
mkdir -p ~/private_keys
echo -n "$API_KEY_BASE64" | base64 --decode --output ~/private_keys/AuthKey_${{ secrets.APPSTORE_API_KEY_ID }}.p8
echo "After saving: "
ls ~/private_keys
- name: "Upload file to test flight using CLI"
run: |
echo "Starting upload"
ls ~/private_keys
cd ios/App && xcrun altool validate-app -f $RUNNER_TEMP/export/App.ipa -t ios apiKey ${{ secrets.APPSTORE_API_KEY_ID }} apiIssuer ${{ secrets.APPSTORE_ISSUER_ID }}
cd ios/App && xcrun altool upload-app -f $RUNNER_TEMP/export/App.ipa -t ios apiKey ${{ secrets.APPSTORE_API_KEY_ID }}” — apiIssuer ${{ secrets.APPSTORE_ISSUER_ID }}
ls ~/.private_keys
cd ios/App && xcrun altool --validate-app -f $RUNNER_TEMP/export/App.ipa -t ios --apiKey ${{ secrets.APPSTORE_API_KEY_ID }} --apiIssuer ${{ secrets.APPSTORE_ISSUER_ID }}
xcrun altool --upload-app -f $RUNNER_TEMP/export/App.ipa -t ios --apiKey ${{ secrets.APPSTORE_API_KEY_ID }} --apiIssuer ${{ secrets.APPSTORE_ISSUER_ID }}
8 changes: 2 additions & 6 deletions .github/workflows/web-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ jobs:
uses: actions/checkout@v3

- name: Make envfile
uses: SpicyPizza/create-envfile@v1.3
with:
directory: .
file_name: .env
envkey_GPF_key: ${{ secrets.GPF_key }}
fail_on_empty: false
run: |
echo "GPF_key=${{ secrets.GPF_key }}" > .env
- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
58 changes: 0 additions & 58 deletions config.xml

This file was deleted.

8 changes: 4 additions & 4 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2.90;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 2.90;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = fr.ign.geoportail;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -366,11 +366,11 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2.90;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0;
MARKETING_VERSION = 2.90;
PRODUCT_BUNDLE_IDENTIFIER = fr.ign.geoportail;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"description": "Application Géoportail",
"main": "index.js",
"scripts": {
"build": "webpack --config webpack.config.js",
"build:dev": "webpack --config dev.config.js",
"serve:dev": "webpack-dev-server --config dev.config.js",
"build": "webpack --config webpack.prod.js",
"build:dev": "webpack --config webpack.dev.js",
"serve:dev": "webpack-dev-server --config webpack.dev.js",
"run:android": "npm run build:dev && npx cap sync && npx cap run android",
"build:android": "npm run build && npx cap sync && cd android && ./gradlew assembleRelease",
"build:android:dev": "npm run build:dev && npx cap sync && cd android && ./gradlew"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8f23bc9

Please sign in to comment.