feat(workflows): add deployment workflow for automatic deployment on main branch push to streamline deployment process
Some checks failed
DEPLOY / deploy (push) Failing after 43s

This commit is contained in:
Djalim Simaila 2025-02-12 08:47:50 +01:00
parent 03cfba1238
commit 6cbfc52895

View File

@ -0,0 +1,38 @@
name: DEPLOY
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Setup bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Rename build folder
run: mv build blog
- name: deploy to server
uses: rejahrehim/rsync-deploy-with-proxy@v2.1.6
env:
DEPLOY_KEY: ${{ secrets.SERVER_SSH_KEY }}
ARGS: "--delete -av"
SERVER_PORT: ${{ secrets.SERVER_PORT }}
FOLDER: "blog/"
SERVER_IP: ${{ secrets.SERVER_IP }}
USERNAME: ${{ secrets.USERNAME }}
SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION }}
PROXY_SERVER_PORT: ${{ secrets.PROXY_SERVER_PORT }}
PROXY_SERVER_USERNAME: ${{ secrets.PROXY_SERVER_USERNAME }}
PROXY_SERVER_IP: ${{ secrets.PROXY_SERVER_IP }}