website/.forgejo/workflows/deploy.yml
kleines Filmröllchen c492dd785f
All checks were successful
/ Build and deploy website (push) Successful in 4m12s
Try porting CI to FTP (should already upload files to the beta site)
2025-10-08 20:25:15 +02:00

29 lines
831 B
YAML

on:
push:
branches:
- main
env:
SERVER_URL: ${{ vars.SERVER_URL }}
FTP_USER: ${{ vars.FTP_USER }}
jobs:
build-website:
name: Build and deploy website
runs-on: alpine
defaults:
run:
shell: ash -eo pipefail {0}
steps:
- name: Install dependencies
run: apk add --no-cache curl nodejs git zola openssh minify lftp
- name: Checkout repository
uses: actions/checkout@v4
- name: Build web
run: zola build
- name: Minify files
run: minify --all -r -o . public
- name: Transfer built files
run: lftp -e 'set ssl:verify-certificate false; mirror --reverse --delete --no-perms --overwrite ./public httpdocs; exit' ftp://${{ env.FTP_USER }}:${{ secrets.FTP_PASSWORD }}@${{ env.SERVER_URL }}/