Update docs for last 6 commits #4
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: CI | |
| on: | |
| push: | |
| branches: ['**'] | |
| tags: ['v*'] | |
| pull_request: | |
| jobs: | |
| build-and-test: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Cache SPM dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: .build | |
| key: ${{ runner.os }}-spm-${{ hashFiles('Package.resolved') }} | |
| restore-keys: | | |
| ${{ runner.os }}-spm- | |
| - name: Build | |
| run: swift build | |
| - name: Test | |
| run: swift run HeardTests | |
| - name: Build release bundle | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: ./scripts/bundle.sh --release | |
| # Zip with ditto to preserve macOS metadata and resource forks. | |
| - name: Zip app bundle | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| run: ditto -c -k --sequesterRsrc --keepParent build/Heard.app build/Heard-${{ github.ref_name }}.zip | |
| - name: Create GitHub Release | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: build/Heard-${{ github.ref_name }}.zip | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # Notarization (disabled — requires Apple Developer credentials stored as secrets). | |
| # To enable, add these repository secrets: | |
| # APPLE_ID, APPLE_APP_PASSWORD (app-specific), APPLE_TEAM_ID | |
| # Then uncomment: | |
| # | |
| # - name: Notarize | |
| # if: startsWith(github.ref, 'refs/tags/v') | |
| # run: | | |
| # xcrun notarytool submit build/Heard-${{ github.ref_name }}.zip \ | |
| # --apple-id "${{ secrets.APPLE_ID }}" \ | |
| # --password "${{ secrets.APPLE_APP_PASSWORD }}" \ | |
| # --team-id "${{ secrets.APPLE_TEAM_ID }}" \ | |
| # --wait |