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

37 lines
793 B
YAML
Raw Normal View History

name: Deploy
on:
push:
2024-04-08 13:56:07 -04:00
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path: /workspace/SPT-AKI/DB-Website
2024-04-08 14:28:21 -04:00
fetch-depth: 0
2024-04-08 10:30:08 -04:00
2024-04-08 13:56:07 -04:00
- name: List files
2024-04-08 10:30:08 -04:00
run: ls -lah
shell: bash
2024-04-08 10:30:08 -04:00
with:
path: /workspace/SPT-AKI/DB-Website
2024-04-08 13:56:07 -04:00
- name: Setup known_hosts
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts
- name: Setup SSH key
2024-04-08 13:56:07 -04:00
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