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