set xcode to 16.4 #62
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 and Notarize | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'Flitro/**' | |
| - 'FlitroTests/**' | |
| - 'FlitroUITests/**' | |
| - 'Flitro.xcodeproj/**' | |
| - '.github/workflows/build-and-notarize.sh' | |
| - '.github/workflows/build-and-notarize.yml' | |
| jobs: | |
| build-and-notarize: | |
| runs-on: macos-15 | |
| environment: MAIN | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: '16.4.0' | |
| - name: Build and Notarize | |
| id: build_and_notarize | |
| run: | | |
| ./.github/workflows/build-and-notarize.sh | |
| env: | |
| APPLE_ID: ${{ secrets.APPLE_ID }} | |
| APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} | |
| APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} | |
| KEYCHAIN_PASSWORD: ${{ secrets.KEYCHAIN_PASSWORD }} | |
| APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} | |
| APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} | |
| APPLE_CERTIFICATE_IDENTITY: ${{ secrets.APPLE_CERTIFICATE_IDENTITY }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Create/Update latest tag | |
| run: | | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --global user.name "github-actions[bot]" | |
| # Delete the tag if it exists (locally and remotely) | |
| git tag -d latest || true | |
| git push origin :refs/tags/latest || true | |
| # Create and push the new tag | |
| git tag latest | |
| git push origin latest | |
| - name: Create Release | |
| id: create_release | |
| # https://github.com/softprops/action-gh-release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| tag_name: latest | |
| name: Flitro ${{ steps.build_and_notarize.outputs.version }} (build ${{ steps.build_and_notarize.outputs.build_number }}) | |
| body_path: build/Release/release-notes.html | |
| draft: false | |
| prerelease: false | |
| files: | | |
| build/Release/Flitro.zip | |
| build/Release/appcast.xml | |
| generate_release_notes: true | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |