2022-01-31 07:58:23 +00:00
|
|
|
name: Nightly
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 8 * * *"
|
|
|
|
jobs:
|
|
|
|
build:
|
2023-04-30 22:00:23 +00:00
|
|
|
# runs-on: macOS-latest
|
|
|
|
runs-on: macos-13
|
2022-01-31 07:58:23 +00:00
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
2023-12-12 22:30:06 +00:00
|
|
|
- uses: actions/checkout@v4
|
2022-01-31 07:58:23 +00:00
|
|
|
- name: Setup Signing
|
|
|
|
env:
|
|
|
|
SIGNING_DATA: ${{ secrets.SIGNING_DATA }}
|
|
|
|
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
|
|
|
|
HOST_PROFILE_DATA: ${{ secrets.HOST_PROFILE_DATA }}
|
|
|
|
AGENT_PROFILE_DATA: ${{ secrets.AGENT_PROFILE_DATA }}
|
|
|
|
APPLE_API_KEY_DATA: ${{ secrets.APPLE_API_KEY_DATA }}
|
|
|
|
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
|
|
|
|
run: ./.github/scripts/signing.sh
|
|
|
|
- name: Set Environment
|
2024-01-16 21:39:07 +00:00
|
|
|
run: sudo xcrun xcode-select -s /Applications/Xcode_15.2.app
|
2022-01-31 07:58:23 +00:00
|
|
|
- name: Update Build Number
|
|
|
|
env:
|
|
|
|
RUN_ID: ${{ github.run_id }}
|
|
|
|
run: |
|
|
|
|
sed -i '' -e "s/GITHUB_CI_VERSION/0.0.0/g" Sources/Config/Config.xcconfig
|
|
|
|
sed -i '' -e "s/GITHUB_BUILD_NUMBER/1.$RUN_ID/g" Sources/Config/Config.xcconfig
|
|
|
|
sed -i '' -e "s/GITHUB_BUILD_URL/https:\/\/github.com\/maxgoedjen\/secretive\/actions\/runs\/$RUN_ID/g" Sources/Secretive/Credits.rtf
|
|
|
|
- name: Build
|
|
|
|
run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme Secretive -configuration Release -archivePath Archive.xcarchive archive
|
|
|
|
- name: Create ZIPs
|
|
|
|
run: |
|
|
|
|
ditto -c -k --sequesterRsrc --keepParent Archive.xcarchive/Products/Applications/Secretive.app ./Secretive.zip
|
|
|
|
ditto -c -k --sequesterRsrc --keepParent Archive.xcarchive ./Archive.zip
|
|
|
|
- name: Notarize
|
|
|
|
env:
|
|
|
|
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
|
|
|
|
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
|
|
|
|
run: xcrun notarytool submit --key ~/.private_keys/AuthKey_$APPLE_API_KEY_ID.p8 --key-id $APPLE_API_KEY_ID --issuer $APPLE_API_ISSUER Secretive.zip
|
|
|
|
- name: Document SHAs
|
|
|
|
run: |
|
2022-04-23 02:37:28 +00:00
|
|
|
echo "sha-512:"
|
2022-01-31 07:58:23 +00:00
|
|
|
shasum -a 512 Secretive.zip
|
|
|
|
shasum -a 512 Archive.zip
|
2022-04-23 02:37:28 +00:00
|
|
|
echo "sha-256:"
|
|
|
|
shasum -a 256 Secretive.zip
|
|
|
|
shasum -a 256 Archive.zip
|
2022-01-31 07:58:23 +00:00
|
|
|
- name: Upload App to Artifacts
|
2023-12-12 22:30:06 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-01-31 07:58:23 +00:00
|
|
|
with:
|
|
|
|
name: Secretive.zip
|
2022-10-27 07:40:01 +00:00
|
|
|
path: Secretive.zip
|