From df2999516dc24346c1f38675a462a36fc1673150 Mon Sep 17 00:00:00 2001 From: Arif Hasanic Date: Sun, 31 Aug 2025 16:48:10 +0200 Subject: [PATCH] auto restart firefox after publish; write git hash into file for server --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb45727..31fd769 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ jobs: run: bun install - name: Build run: bun run build + - name: Write git hash into dist + run: echo "export const GIT_HASH = '$(git rev-parse HEAD)';" > dist/git-hash.js - name: Create Build Artifact uses: christopherhx/gitea-upload-artifact@v4 with: @@ -39,7 +41,7 @@ jobs: - name: Run Biome run: biome ci . - build-and-push-docker: + create-and-publish-docker-image: needs: [build] runs-on: ubuntu-latest steps: @@ -69,6 +71,9 @@ jobs: script: | cd monitor-im-flur echo "Deploying Docker container..." + $HYPRLAND_INSTANCE_SIGNATURE + hyprctl dispatch exec 'pkill firefox' + hyprctl dispatch exec 'firefox -kiosk localhost:9123' git clean -dfx git reset --hard HEAD git pull