Skip to content

Commit

Permalink
Fix non-alpha build upload script
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Aug 4, 2024
1 parent efa0b9c commit f13caf0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/beta.build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,10 @@ jobs:
path: Monal/build/app/Monal.pkg
if-no-files-found: error
- name: Upload new catalyst beta to monal-im.org
run: ./scripts/uploadNonAlpha.sh beta
env:
UPLOAD_TYPE: beta
buildNumber: ${{ steps.releasenotes.outputs.buildNumber }}
run: ./scripts/uploadNonAlpha.sh
- name: Publish catalyst to appstore connect
#run: xcrun altool --upload-app --file ./Monal/build/app/Monal.pkg --type macos --asc-provider S8D843U34Y -u "$(cat /Users/ci/apple_connect_upload_mail.txt)" -p "$(cat /Users/ci/apple_connect_upload_secret.txt)" --primary-bundle-id org.monal-im.prod.catalyst.monal
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/stable.build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ jobs:
path: Monal/build/app/Monal.pkg
if-no-files-found: error
- name: Upload new catalyst stable to monal-im.org
run: ./scripts/uploadNonAlpha.sh stable
env:
UPLOAD_TYPE: stable
buildNumber: ${{ steps.releasenotes.outputs.buildNumber }}
run: ./scripts/uploadNonAlpha.sh
- name: Publish catalyst to appstore connect
#run: xcrun altool --upload-app --file ./Monal/build/app/Monal.pkg --type macos --asc-provider S8D843U34Y -u "$(cat /Users/ci/apple_connect_upload_mail.txt)" -p "$(cat /Users/ci/apple_connect_upload_secret.txt)" --primary-bundle-id maccatalyst.G7YU7X7KRJ.SworIM
env:
Expand Down
2 changes: 1 addition & 1 deletion scripts/push_xmpp.org.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo ""
echo "**********************************************"
echo "* Reading buildNumber and creating timestamp *"
echo "**********************************************"
buildNumber=$(git tag --sort="v:refname" |grep "Build_iOS" | tail -n1 | sed 's/Build_iOS_//g')
buildNumber=$(git tag --sort="v:refname" | grep -v "Quicksy_Build_iOS" | grep "Build_iOS" | tail -n1 | sed 's/Build_iOS_//g')
timestamp="$(date -u +%FT%T)"

echo ""
Expand Down
3 changes: 0 additions & 3 deletions scripts/uploadNonAlpha.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/sh

UPLOAD_TYPE=$1

function sftp_upload {
buildNumber=$(git tag --sort="v:refname" |grep "Build_iOS" | tail -n1 | sed 's/Build_iOS_//g')
echo "${buildNumber}" > build/app/latest.txt
sftp ${1} <<EOF
put build/app/Monal.zip /var/www/downloads.monal-im.org/monal-im/$UPLOAD_TYPE/macOS/Monal-${buildNumber}.zip
Expand Down

0 comments on commit f13caf0

Please sign in to comment.