From 608b17c181ff9bee70d979d405f677cd9cecb6b1 Mon Sep 17 00:00:00 2001 From: Jakob Scheid Date: Mon, 3 Aug 2026 16:27:17 +0200 Subject: [PATCH] chore(cd): checkout LFS in deployment workflow The production deployment workflow now installs Git LFS and checkouts LFS objects. --- .gitea/workflows/deploy-on-prod.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.gitea/workflows/deploy-on-prod.yml b/.gitea/workflows/deploy-on-prod.yml index 93d8e99..66cb298 100644 --- a/.gitea/workflows/deploy-on-prod.yml +++ b/.gitea/workflows/deploy-on-prod.yml @@ -33,6 +33,19 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Git LFS + - run: | + apt-get update + apt-get install -y git-lfs + + - name: Checkout LFS + run: | + git lfs install --local + AUTH=$(git config --local http.${{ gitea.server_url }}/.extraheader) + git config --local --unset http.${{ gitea.server_url }}/.extraheader + git config --local http.${{ gitea.server_url }}/${{ gitea.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH" + git lfs pull + - name: Set alias run: | mc alias set minio "${{ vars.S3_PROD_URL }}" "${{ secrets.S3_PROD_ACCESS_KEY }}" "${{ secrets.S3_PROD_SECRET_KEY }}"