Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:MrKai77/Loop into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKai77 committed Jun 28, 2023
2 parents fce67ba + 77c33f3 commit 70c566c
Showing 1 changed file with 22 additions and 26 deletions.
48 changes: 22 additions & 26 deletions .github/workflows/build-loop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@ name: Build Loop

on:
workflow_dispatch:
push:
push:
branches:
- develop
paths:
- Loop/**

permissions:
contents: write

jobs:
build_with_signing:
Expand All @@ -27,36 +34,25 @@ jobs:
- name: Build Loop.app
run: |
sh ./resources/build_loop.sh
# - name: Codesign executable
# env:
# MACOS_CERTIFICATE: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
# MACOS_CERTIFICATE_PWD: ${{ secrets.P12_PASSWORD }}
# run: |
# echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12

# # Make new keychain & unlock it
# security create-keychain -p 12345678 build.keychain
# security default-keychain -s build.keychain
# security unlock-keychain -p 12345678 build.keychain

# # Add codesign certificate to keychain
# security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign

# security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k 12345678 build.keychain

# # Codesign Loop
# /usr/bin/codesign --force -s <identity-id> ./path/to/you/app -v

- name: Zip Loop.app
run: |
ditto -c -k --sequesterRsrc --keepParent Loop.app Loop.zip
# Testing purposes
git rev-parse --short HEAD
- name: Upload achived app
uses: actions/upload-artifact@v3.1.2
with:
name: Loop.zip
path: Loop.zip

- name: Publish Prerelease
uses: softprops/action-gh-release@v1
with:
name: Github Actions Loop Autobuild
prerelease: true
files: Loop.zip
tag_name: prerelease
fail_on_unmatched_files: true
generate_release_notes: true


0 comments on commit 70c566c

Please sign in to comment.