0
0
mirror of https://github.com/sp-tarkov/db-website.git synced 2025-02-08 02:30:45 -05:00

Updates Deploy Script

This commit is contained in:
Refringe 2024-11-20 13:02:20 -05:00
parent 0baed15af0
commit 26d6a54968
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -2,35 +2,35 @@ name: Deploy
on:
push:
branches: [ main ]
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: /workspace/SPT-AKI/DB-Website
fetch-depth: 0
- name: Checkout
uses: actions/checkout@v3
with:
path: /workspace/SPT/DB-Website
fetch-depth: 0
- name: List files
run: ls -lah
shell: bash
with:
path: /workspace/SPT-AKI/DB-Website
- name: List files
run: ls -lah
shell: bash
with:
path: /workspace/SPT/DB-Website
- name: Setup known_hosts
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
- name: Setup known_hosts
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
- name: Setup SSH key
uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Setup 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
- 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