From 3a992cff3177539faaae75f351cec588de7805dc Mon Sep 17 00:00:00 2001
From: Marty Oehme <contact@martyoeh.me>
Date: Tue, 4 Mar 2025 15:20:50 +0100
Subject: [PATCH] Publish to pages

---
 .github/workflows/build.yaml | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index fc0dc72..b2a14f0 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -77,10 +77,13 @@ jobs:
           sha256sum $(echo dotter-bin-*.${{ matrix.arch }}.xbps) | tee $(echo dotter-bin-*.${{ matrix.arch }}.xbps).sha256sum
           sha512sum $(echo dotter-bin-*.${{ matrix.arch }}.xbps) | tee $(echo dotter-bin-*.${{ matrix.arch }}.xbps).sha512sum
 
-      - name: release
-        uses: softprops/action-gh-release@v2
+      - name: publish to pages
+        uses: peaceiris/actions-gh-pages@v4
+        # If you're changing the branch from main,
+        # also change the `main` in `refs/heads/main`
+        # below accordingly.
+        if: github.ref == 'refs/heads/main'
         with:
-          files: |
-            upstream-packages/hostdir/binpkgs/*.xbps
-            upstream-packages/hostdir/binpkgs/*.sig2
-            upstream-packages/hostdir/binpkgs/*repodata
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          publish_dir: upstream-packages/hostdir/binpkgs
+