Bundle SwiftPM resource bundles into the release .app #9
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: Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-release: | |
| runs-on: macos-15 | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Select Xcode 16 | |
| run: | | |
| DEVELOPER_APP="$(find /Applications -maxdepth 1 -type d -name 'Xcode_16*.app' ! -name 'Xcode_16.app' | sort -V | tail -n 1)" | |
| if [[ -z "${DEVELOPER_APP}" ]]; then | |
| echo "No Xcode 16 installation found on runner." >&2 | |
| exit 1 | |
| fi | |
| sudo xcode-select -s "${DEVELOPER_APP}/Contents/Developer" | |
| xcodebuild -version | |
| swift --version | |
| - name: Show toolchain versions | |
| run: | | |
| sw_vers | |
| swift --version | |
| - name: Build DMG | |
| run: | | |
| chmod +x scripts/build-release-app.sh scripts/build-release-dmg.sh | |
| VERSION="${GITHUB_REF_NAME}" ./scripts/build-release-dmg.sh | |
| - name: Generate checksum | |
| run: | | |
| cd dist | |
| shasum -a 256 "AeroMux-${GITHUB_REF_NAME}.dmg" > "AeroMux-${GITHUB_REF_NAME}.dmg.sha256" | |
| - name: Publish GitHub release | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| run: | | |
| gh release create "${GITHUB_REF_NAME}" \ | |
| "dist/AeroMux-${GITHUB_REF_NAME}.dmg" \ | |
| "dist/AeroMux-${GITHUB_REF_NAME}.dmg.sha256" \ | |
| --generate-notes \ | |
| --title "${GITHUB_REF_NAME}" |