Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Aug 6, 2024
1 parent 3a3d6f9 commit 07b5083
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 07b5083

Please sign in to comment.