From 6a931e38a414f30ffcbfd03bbdffabf783b710d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 29 Oct 2024 17:02:53 +0100 Subject: [PATCH] add step tot remove distignore files --- .forgejo/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 61adedd..ecc7535 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -8,6 +8,16 @@ jobs: steps: - uses: https://code.forgejo.org/actions/checkout@v4 + - name: Remove Files Listed in .distignore + run: | + if [ -f .distignore ]; then + while IFS= read -r line; do + if [ -n "$line" ] && [ "${line:0:1}" != "#" ]; then + rm -rf "$line" + fi + done < .distignore + fi + - uses: https://code.forgejo.org/actions/forgejo-release@v2 with: direction: upload