Skip to content

Commit

Permalink
Merge pull request #12 from jbw/fix-notification-text-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
jbw authored Nov 14, 2022
2 parents 565fa7d + 4cc6cef commit bc34413
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches: ["main", "beta"]
pull_request:
branches: ["main", "beta"]
types:
- opened
- synchronize

jobs:
get-next-version:
Expand All @@ -28,7 +30,6 @@ jobs:
needs: [get-next-version, lint]
name: 🛠️ Build
runs-on: macos-12
if: needs.get-next-version.outputs.new-release-published == 'true'

steps:
- name: Checkout
Expand All @@ -46,7 +47,7 @@ jobs:
AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
AUTH_SECRET: ${{ secrets.AUTH_SECRET }}
run: |
export OCTOBLAST_VERSION=${{ needs.get-next-version.outputs.new-release-version }}
export OCTOBLAST_VERSION=${{ needs.get-next-version.outputs.new-release-version }}
./releases/build.sh
- name: Upload a Build Artifact
Expand Down
4 changes: 2 additions & 2 deletions OctoBlast.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/sindresorhus/LaunchAtLogin";
requirement = {
branch = main;
kind = branch;
minimumVersion = 4.2.0;
kind = upToNextMajorVersion;
};
};
71BC7E8A28CE3D7C00E1DFA6 /* XCRemoteSwiftPackageReference "Preferences" */ = {
Expand Down
10 changes: 6 additions & 4 deletions releases/build.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
set -e
rm -rf build
mkdir -p releases
echo $OCTOBLAST_VERSION >OctoBlast/version.txt
sed -i .bak 's/CURRENT_PROJECT_VERSION.*;/CURRENT_PROJECT_VERSION = '$OCTOBLAST_VERSION';/g' OctoBlast.xcodeproj/project.pbxproj
sed -i .bak 's/MARKETING_VERSION.*;/MARKETING_VERSION = '$OCTOBLAST_VERSION';/g' OctoBlast.xcodeproj/project.pbxproj

echo ${OCTOBLAST_VERSION:-1.0.0} >OctoBlast/version.txt
cat OctoBlast/version.txt
sed -i .bak 's/CURRENT_PROJECT_VERSION.*;/CURRENT_PROJECT_VERSION = '${OCTOBLAST_VERSION:-1.0.0}';/g' OctoBlast.xcodeproj/project.pbxproj
sed -i .bak 's/MARKETING_VERSION.*;/MARKETING_VERSION = '${OCTOBLAST_VERSION:-1.0.0}';/g' OctoBlast.xcodeproj/project.pbxproj
xcodebuild clean
xcodebuild clean archive -scheme OctoBlast -configuration Release -archivePath build/OctoBlast.xcarchive
xcodebuild -exportArchive -archivePath build/OctoBlast.xcarchive -exportPath build/OctoBlast -exportOptionsPlist OctoBlast/Info.plist

cd build/OctoBlast/
zip -r ../../releases/archives/OctoBlast-$OCTOBLAST_VERSION.zip OctoBlast.app
zip -r ../../releases/archives/OctoBlast-${OCTOBLAST_VERSION:-1.0.0}.zip OctoBlast.app

0 comments on commit bc34413

Please sign in to comment.