From 07b5083d4d1a91ffde74ca4c506fe025cadf1277 Mon Sep 17 00:00:00 2001 From: AndcoolSystems Date: Wed, 7 Aug 2024 02:31:34 +0300 Subject: [PATCH] test --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f90f7d9..328e0db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -82,7 +82,7 @@ jobs: run: npm run build - name: Archive production artifacts - run: tar -czf build.tar.gz .next public package.json package-lock.json + run: tar -czf build.tar.gz .next public package.json package-lock.json .env.enc - name: Upload production artifacts uses: actions/upload-artifact@v4 @@ -120,6 +120,7 @@ jobs: sshpass -e ssh -o StrictHostKeyChecking=no root@${{ secrets.SERVER_IP }} << 'EOF' cd /home/ppl_site tar -xzf build.tar.gz + openssl aes-256-cbc -d -in .env.enc -out .env -k ${{ secrets.ENCRYPTION_KEY }} rm build.tar.gz npm install --production systemctl restart ppl_site