From 84c140f1732ca67a48561c028f6c0b22023ee89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Sat, 14 Dec 2024 23:21:27 +0100 Subject: [PATCH] preliminary CD --- .forgejo/workflows/deploy.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..cb91806 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - main + +jobs: + build-website: + name: Build and deploy website + runs-on: alpine:edge + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install dependencies + run: apk add curl nodejs git zola openssh + - name: Output SSH key to file + run: echo ${{ secrets.SSH_KEY }} > ssh_id + - name: Build web + run: zola build + # TODO: this is where the LaTeX build would go... + - name: Transfer built files + run: scp -i ssh_id -o StrictHostKeyChecking=accept-new -r ./public/ ${{ vars.SERVER_URL }}