Draft GitHub Release #103
Workflow file for this run
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: Draft GitHub Release | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| distribute-app: | |
| runs-on: macos-26 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: MacOS version | |
| run: sw_vers | |
| - name: Set up Homebrew | |
| id: set-up-homebrew | |
| uses: Homebrew/actions/setup-homebrew@master | |
| - uses: gsabran/setup-swift@main | |
| with: | |
| swift-version: "6.2" | |
| soft-fail-version-check: true | |
| - uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '26.0' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: "./local-server/.nvmrc" | |
| - name: Install node dependencies | |
| run: cd local-server && yarn install && yarn build && yarn copy-to-app | |
| # See https://github.com/actions/runner-images/issues/10722#issuecomment-2387952421 | |
| - uses: extractions/netrc@v1 | |
| with: | |
| machine: github.com | |
| username: oauth2 | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install release dependencies | |
| run: | | |
| npm install --global create-dmg | |
| brew install graphicsmagick imagemagick sentry-cli | |
| cd app/fastlane && gem install bundler && bundle install | |
| - name: Load derived data cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: app/build/derived_data | |
| key: ${{ runner.os }}-app-derived-data-main | |
| - name: Publish release | |
| run: cd app/fastlane && bundle exec fastlane mac distribute_release | |
| env: | |
| FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60 | |
| FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 10 | |
| FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN: ${{ secrets.FASTLANE_MACH_REPO_GITHUB_ACCESS_TOKEN }} | |
| MATCH_PASSWORD: ${{ secrets.FASTLANE_MACH_PASSWORD }} | |
| NOTARY_KEY_ID: ${{ secrets.NOTARY_KEY_ID }} | |
| NOTARY_P8: ${{ secrets.NOTARY_P8 }} | |
| NOTARY_ISSUER_ID: ${{ secrets.NOTARY_ISSUER_ID }} | |
| SPARKLE_SECRET_KEY: ${{ secrets.SPARKLE_SECRET_KEY }} | |
| GH_WRITE_TOKEN: ${{ secrets.GH_WRITE_TOKEN }} | |
| SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} |