chore: prepare v1.0.2 release #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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| tags: ['v*'] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Show toolchain versions | |
| run: | | |
| swift --version | |
| xcodebuild -version | |
| - name: Build Swift package | |
| run: swift build | |
| - name: Build app bundle | |
| run: ./build_app.sh | |
| - name: Archive app bundle | |
| run: | | |
| mkdir -p release | |
| ditto -c -k --sequesterRsrc --keepParent dist/ProcessBarMonitor.app release/ProcessBarMonitor-ci-macOS.zip | |
| - name: Upload app artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ProcessBarMonitor-macOS | |
| path: | | |
| dist/ProcessBarMonitor.app | |
| release/ProcessBarMonitor-ci-macOS.zip | |
| release-validation: | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| needs: build | |
| runs-on: macos-latest | |
| steps: | |
| - name: Release tag detected | |
| run: echo "Release tag ${GITHUB_REF_NAME} validated by CI build job." |