diff --git a/.github/workflows/flatpak-repo.yml b/.github/workflows/flatpak-repo.yml new file mode 100644 index 0000000..67e089b --- /dev/null +++ b/.github/workflows/flatpak-repo.yml @@ -0,0 +1,41 @@ +name: Self-hosted flatpak repository + +on: + release: + types: [published] + workflow_dispatch: + +jobs: + flatter: + name: Build Flatpak + runs-on: ubuntu-latest + container: + image: ghcr.io/andyholmes/flatter/kde:6.10 + options: --privileged + permissions: + contents: read + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + uses: andyholmes/flatter@main + with: + files: flatpak/io.github.vadi2.postured.yml + upload-pages-artifact: true + upload-bundles: true + + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + needs: flatter + permissions: + pages: write + id-token: write + environment: + name: github-pages + + steps: + - name: Deploy Pages + uses: actions/deploy-pages@v4 diff --git a/postured/tray.py b/postured/tray.py index 629ddae..e77c292 100644 --- a/postured/tray.py +++ b/postured/tray.py @@ -168,8 +168,9 @@ def _rebuild_recalibrate_menu(self): action = QAction(label, self.recalibrate_menu) action.triggered.connect( - lambda checked, - mid=monitor_id: self.recalibrate_monitor_requested.emit(mid) + lambda checked, mid=monitor_id: ( + self.recalibrate_monitor_requested.emit(mid) + ) ) self.recalibrate_menu.addAction(action)