Skip to content

Commit

Permalink
+ CI YML
Browse files Browse the repository at this point in the history
  • Loading branch information
buresdv committed May 25, 2024
1 parent 3fee78a commit d99d7dd
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build New Version

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:
build-app:
runs-on: macos-13

steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.2'

- name: Checkout repository
uses: actions/checkout@v4

- name: Xcodebuild
run: xcodebuild -project Cork.xcodeproj -scheme Cork -destination platform=macOS build -derivedDataPath ./build

- name: Patch Xcode 15.3
uses: 2sem/patch-package-resolved@v1

- name: Notarize Release Build
uses: lando/notarize-action@v2
with:
product-path: "build/Build/Products/Debug/Cork.app"
appstore-connect-username: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
appstore-connect-password: ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
appstore-connect-team-id: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
verbose: true

- name: "Staple Release Build"
uses: BoundfoxStudios/action-xcode-staple@v1
with:
product-path: "build/Build/Products/Debug/Cork.app"

- name: Create zip file
run: cp -r build/Build/Products/Debug/Cork.app . && zip -r Cork.zip Cork.app

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
file: Cork.zip

0 comments on commit d99d7dd

Please sign in to comment.