name: Release on: workflow_dispatch: inputs: version_type: description: 'Type of version bump (major, minor, patch)' required: true default: 'patch' type: choice options: - patch - minor - major jobs: release: runs-on: ubuntu-latest concurrency: release permissions: id-token: write contents: write outputs: released: ${{ steps.release.outputs.released }} tag: ${{ steps.release.outputs.tag }} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Python Semantic Release id: release uses: python-semantic-release/python-semantic-release@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1 if: steps.release.outputs.released == 'true' with: password: ${{ secrets.PYPI_TOKEN }} - name: Publish to GitHub Release Assets uses: python-semantic-release/publish-action@v9.8.9 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.release.outputs.tag }} build-macos: #needs: release #if: needs.release.outputs.released == 'true' runs-on: macos-latest steps: - uses: actions/checkout@v4 #with: # ref: ${{ needs.release.outputs.tag }} - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install librsvg run: brew install librsvg - name: Install uv run: | pip install uv - name: Create virtual env run: | uv venv uv pip install -e "..[dev]" - name: Build macOS installer run: | make installer-mac xattr -dr com.apple.quarantine "build/Basic Memory Installer.app" - name: Check library paths run: | otool -L installer/build/Basic\ Memory\ Installer.app/Contents/MacOS/Basic\ Memory\ Installer otool -l installer/build/Basic\ Memory\ Installer.app/Contents/MacOS/Basic\ Memory\ Installer - name: Inspect build run: | echo "Build structure:" ls -la installer/build/Basic\ Memory\ Installer.app/Contents/MacOS/ # - name: Zip macOS installer # run: | # cd installer/build # zip -ry "Basic-Memory-Installer-${{ needs.release.outputs.tag }}.zip" "Basic Memory Installer.app" # # - name: Upload macOS installer # uses: softprops/action-gh-release@v1 # with: # files: installer/build/Basic-Memory-Installer-${{ needs.release.outputs.tag }}.zip # tag_name: ${{ needs.release.outputs.tag }} # token: ${{ secrets.GITHUB_TOKEN }} - name: Zip macOS installer run: | cd installer/build zip -ry "Basic-Memory-Installer.zip" "Basic Memory Installer.app" - name: Upload macOS installer uses: softprops/action-gh-release@v1 with: files: installer/build/Basic-Memory-Installer.zip token: ${{ secrets.GITHUB_TOKEN }}