0
0
mirror of https://github.com/sp-tarkov/db-website.git synced 2025-02-02 17:49:21 -05:00

Pipeline: Adds push to production step

This commit is contained in:
Refringe 2024-04-08 13:56:07 -04:00
parent df2d500d70
commit 6da627d951
Signed by: Refringe
GPG Key ID: 7715B85B4A6306ED

View File

@ -2,7 +2,7 @@ name: Deploy
on:
push:
branches: [ main, rewrite ]
branches: [ main ]
jobs:
deploy:
@ -13,8 +13,18 @@ jobs:
with:
path: /workspace/SPT-AKI/DB-Website
- name: List Files
- name: List files
run: ls -lah
shell: bash
with:
path: /workspace/SPT-AKI/DB-Website
- name: Set up SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Push to production
run: |
git remote add deploy ssh://dbwebsite@51.195.101.201/home/dbwebsite/DB-Website.git
git push deploy main:main