From c24f63abfec8d850368f69bb3a4594e54dedf849 Mon Sep 17 00:00:00 2001
From: Andy Pack <andy@sarsoo.xyz>
Date: Sat, 15 Mar 2025 21:49:31 +0000
Subject: [PATCH] re-enabling CD

---
 .github/workflows/ci.yml | 38 +++++++++++++++++++-------------------
 1 file changed, 19 insertions(+), 19 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c676ecf..f165a8b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -116,25 +116,25 @@ jobs:
             images: sarsoo/overflow:${{ github.ref_name }}-amd64,sarsoo/overflow:${{ github.ref_name }}-arm64
             push: true
 
-  # deploy:
+  deploy:
 
-  #   runs-on: ubuntu-latest
-  #   name: Deploy
-  #   needs: [build-Docker] # for ignoring bad builds
-  #   if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
-  #   environment: 
-  #     name: prod
-  #     url: https://overflow.sarsoo.xyz
-  #   steps:
-  #     - uses: actions/checkout@v3
+    runs-on: ubuntu-latest
+    name: Deploy
+    needs: [packageManifest] # for ignoring bad builds
+    if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
+    environment: 
+      name: prod
+      url: https://overflow.sarsoo.xyz
+    steps:
+      - uses: actions/checkout@v3
 
-  #     - name: Tailscale
-  #       uses: tailscale/github-action@v2
-  #       with:
-  #         oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
-  #         oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
-  #         tags: tag:ci
-  #         version: 1.80.3
+      - name: Tailscale
+        uses: tailscale/github-action@v2
+        with:
+          oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
+          oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
+          tags: tag:ci
+          version: 1.80.3
 
-  #     - name: Deploy
-  #       run: ssh -o StrictHostKeyChecking=no ${{ secrets.TS_SSH }} -t "cd overflow/ && docker compose up -d --pull always"
\ No newline at end of file
+      - name: Deploy
+        run: ssh -o StrictHostKeyChecking=no ${{ secrets.TS_SSH }} -t "cd overflow/ && docker compose up -d --pull always"
\ No newline at end of file