Build nightly release #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build nightly release | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "30 19 * * *" | |
| env: | |
| CI: true | |
| jobs: | |
| build: | |
| runs-on: macos-26 | |
| env: | |
| GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| brew install swiftlint | |
| gem install fastlane | |
| bundle install | |
| pip install setuptools | |
| npm install https://github.com/PlayCover/create-dmg | |
| - name: Set build number | |
| shell: bash | |
| run: | | |
| fastlane run increment_build_number build_number:${{ github.run_number }} | |
| - name: Fastlane Nightly | |
| shell: bash | |
| run: fastlane nightly | |
| env: | |
| MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }} | |
| MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | |
| FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 120 # x86 is slooooooow | |
| - name: Extract API_KEY | |
| shell: bash | |
| run: 'echo "$API_KEY" > apikey.json' | |
| env: | |
| API_KEY: ${{secrets.APPLE_API_KEY_JSON}} | |
| - name: Create DMG | |
| shell: bash | |
| run: | | |
| npx create-dmg ./output/PlayCover.app ./output | |
| mv ./output/*.dmg ./output/PlayCover_nightly_${{ github.run_number }}.dmg | |
| - name: Notarize DMG | |
| continue-on-error: true | |
| shell: bash | |
| run: | | |
| fastlane notarize_dmg package:output/PlayCover_nightly_${{ github.run_number }}.dmg | |
| - name: Clean Up | |
| shell: bash | |
| run: rm apikey.json | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: PlayCover_nightly_${{ github.run_number }}.dmg | |
| path: output/PlayCover_nightly_${{ github.run_number }}.dmg |