Skip to content

Commit

Permalink
ci: self specified commands since existing actions did not work
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Dijkslag committed Jan 21, 2022
1 parent 66486c4 commit 982ead1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 51 deletions.
10 changes: 10 additions & 0 deletions .github/exportOptionsGithub.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>mac-application</string>
<key>teamID</key>
<string>-</string>
</dict>
</plist>
55 changes: 4 additions & 51 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,71 +19,24 @@ jobs:
- name: "Select Xcode"
uses: devbotsxyz/xcode-select@v1

# - name: "Import Certificate: Development"
# uses: devbotsxyz/import-signing-certificate@main
# with:
# certificate-data: ${{ secrets.DEVELOPMENT_CERTIFICATE_DATA }}
# certificate-passphrase: ${{ secrets.DEVELOPMENT_CERTIFICATE_PASSPHRASE }}
# keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}

# - name: "Import Certificate: Distribution"
# uses: devbotsxyz/import-signing-certificate@main
# with:
# certificate-data: ${{ secrets.DISTRIBUTION_CERTIFICATE_DATA }}
# certificate-passphrase: ${{ secrets.DISTRIBUTION_CERTIFICATE_PASSPHRASE }}
# keychain-password: ${{ secrets.KEYCHAIN_PASSWORD }}

#
# Fail early on failing tests.
# Disabled because this project does not have tests. (TODO Add some example tests)
#

#- name: "Test"
# uses: devbotsxyz/xcode-test@v1

#
# First we do a developer build that we archive into an
# .xcarchive.
#

- name: "Archive"
uses: devbotsxyz/xcode-archive@v1

#
# Next ask Xcode to export the product from the archived build
# we just created. This will also re-sign the application with
# the "Developer ID" certificate.
#

- name: "Export & Sign Release Build"
uses: devbotsxyz/xcode-export-archive@master
with:
export-method: development

#
# Now send the product to Apple's notarization service and then
# staple it.
#

# - name: "Notarize Release Build"
# uses: devbotsxyz/xcode-notarize@v1
# with:
# product-path: "Export/Rings.app"
# appstore-connect-username: ${{ secrets.NOTARIZATION_USERNAME }}
# appstore-connect-password: ${{ secrets.NOTARIZATION_PASSWORD }}
run: xcodebuild -scheme ds4macos archive -archivePath build/ds4macos

# - name: "Staple Release Build"
# uses: devbotsxyz/xcode-staple@v1
# with:
# product-path: "Export/Rings.app"
- name: "Export"
run: xcodebuild -exportArchive -archivePath build/ds4macos.xcarchive -exportPath export/ -exportOptionsPlist .github/exportOptionsGithub.plist

#
# Zip up the app and add it to the GitHub Release as a
# downloadable asset.
#

- name: Package for Distribution
run: ditto -V -c -k --keepParent "Export/ds4macos.app" "ds4macos.zip"
run: ditto -V -c -k --keepParent "export/ds4macos.app" "ds4macos.zip"

- name: Release app
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 982ead1

Please sign in to comment.