From e26b650f63feee84ce0d9a7889a63c1c0decdf3d Mon Sep 17 00:00:00 2001 From: bien Date: Sat, 13 Sep 2025 14:01:16 +0700 Subject: [PATCH 1/2] Take a screenshot to artifacts --- .github/workflows/deploy.yml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1293465..bb87abf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,22 @@ jobs: with: fetch-depth: 0 - - name: CI setup run + - name: Run setup script with deploy CI flag run: | chmod +x setup.sh - ./setup.sh --deploy-ci \ No newline at end of file + ./setup.sh --deploy-ci + + - name: Wait for GUI applications to start + run: sleep 10 + + - name: Take desktop screenshot + run: | + screencapture -x ~/Desktop/dotfiles-setup-result.png + ls -la ~/Desktop/dotfiles-setup-result.png + + - name: Upload screenshot as artifact + uses: actions/upload-artifact@v4 + with: + name: dotfiles-screenshot + path: ~/Desktop/dotfiles-setup-result.png + retention-days: 30 \ No newline at end of file From 9bd60ef4c0037cbbe396973771e01651d6681b47 Mon Sep 17 00:00:00 2001 From: bien Date: Sat, 13 Sep 2025 14:02:40 +0700 Subject: [PATCH 2/2] Run CI --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index bb87abf..f0b083a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,8 +1,9 @@ name: Deploy dotfiles on: push: - branches: - - main + branches: + - main + - screenshot workflow_dispatch: jobs: deploy: