From 2bebc22c656b0e6d8127127edb0e4d72f1e00911 Mon Sep 17 00:00:00 2001 From: Schallbert Date: Tue, 24 Dec 2024 11:34:46 +0100 Subject: [PATCH] add sparse-checkout to not copy private folder to webserver --- .gitea/workflows/deploy-lectures.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-lectures.yml b/.gitea/workflows/deploy-lectures.yml index f3d01d4..ef277ba 100644 --- a/.gitea/workflows/deploy-lectures.yml +++ b/.gitea/workflows/deploy-lectures.yml @@ -22,9 +22,14 @@ jobs: steps: - name: --- CHECKOUT --- - uses: actions/checkout@v3 - with: + uses: actions/checkout@v4 + with: path: ./tmp + sparse-checkout: | + /* + !.git + !.gitea + sparse-checkout-cone-mode: false - name: --- NOTIFY --- run: | curl \ @@ -32,4 +37,3 @@ jobs: -H "Content-Type: text/plain" \ -d $'Repo: ${{ github.repository }}\nRef: ${{ github.ref }}\nStatus: ${{ job.status}}' \ ntfy.sh/schallbert-borgmatic-catzenklebermusoelkanne -