bump version #156
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: CD | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # NOTE: https://github.com/actions/python-versions#building-installation-packages | |
| # For Python >= 3.11, the official macOS universal2 Python binaries are simply downloaded from python.org and... | |
| python-version: ["3.13"] | |
| poetry-version: ["2.3.2"] | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| version: ${{ matrix.poetry-version }} | |
| - name: Install deps | |
| run: poetry install | |
| - name: Run tests | |
| run: poetry run pytest -vs | |
| - name: Set version | |
| run: echo "APP_VERSION=$(poetry version --short)" >> $GITHUB_ENV | |
| - name: Install JS deps | |
| run: pnpm install | |
| - name: Build | |
| run: make build | |
| - name: Package app | |
| run: | | |
| mkdir build/volume | |
| cp -R 'build/dist/Tiny Wi-Fi Analyzer.app' build/volume | |
| hdiutil create \ | |
| -fs HFS+ \ | |
| -srcfolder "build/volume" \ | |
| -volname "Tiny Wi-Fi Analyzer" "build/Tiny_Wi-Fi_Analyzer.dmg" | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| draft: true | |
| name: Release v${{ env.APP_VERSION }} | |
| files: build/Tiny_Wi-Fi_Analyzer.dmg | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |