From 37cfbb0313e0a8ffecb0e6f6799f5a48efffecbc Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 18 Jan 2025 21:22:39 +0100 Subject: [PATCH] prepare for deploy --- .forgejo/workflows/deploy.yml | 18 ++++++++++++++++++ config.json => site-config.json | 0 2 files changed, 18 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml rename config.json => site-config.json (100%) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..c64ab0d --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,18 @@ +on: [push] +jobs: + deploy: + runs-on: docker + container: eclipse-temurin:21-alpine + steps: + - name: Clone repo + run: git clone https://git.m724.eu/Minecon724/m724.eu . + + - name: Download compiler + run: curl -O https://git.m724.eu/Minecon724/blog-software-java/actions/runs/4/artifacts/artifact && unzip artifact + + - name: Build + run: java -jar blog-software-java-1.0-SNAPSHOT.jar + + #- run: apt update && apt install ncftp -y + + #- run: ncftpput -R -u ${{ secrets.FTP_USER }} -p ${{ secrets.FTP_PASSWORD }} ${{ secrets.FTP_SERVER }} html/ generated_out/ \ No newline at end of file diff --git a/config.json b/site-config.json similarity index 100% rename from config.json rename to site-config.json