Polish settings and release readiness #14
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*" | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| macos: | |
| name: Test and Package | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Show Swift Version | |
| run: swift --version | |
| - name: Test | |
| run: swift test | |
| - name: Build Debug | |
| run: swift build | |
| - name: Package App | |
| run: | | |
| if [[ "${GITHUB_REF_TYPE:-}" == "tag" ]]; then | |
| VERSION="$GITHUB_REF_NAME" | |
| else | |
| VERSION="v0.1.5" | |
| fi | |
| VERSION="$VERSION" ./scripts/package-release.sh | |
| VERSION="$VERSION" ./scripts/verify-release.sh | |
| - name: Upload App Archive | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: Sub2APIStatusBar-macOS | |
| path: | | |
| dist/*.zip | |
| dist/*.sha256 | |
| if-no-files-found: error |