From 572225d9dac6199235991c807fe9c6607579dbee Mon Sep 17 00:00:00 2001 From: JB Carreon Date: Tue, 20 Feb 2024 05:41:51 +0800 Subject: [PATCH] actions: add auto deploy --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..76e830c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,21 @@ +name: Update Server + +on: + push: + branches: + - main + +jobs: + update_server: + runs-on: sh-jb-1 + + steps: + - name: Stop App + run: | + docker stop liberation + + - name: Fetch Updates and Restart App + run: | + cd ~/Liberation + git pull + docker-compose up -d --build