From 0bed5325931fc7dc374101f813b28044dcd5c0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 29 Oct 2024 15:41:22 +0100 Subject: [PATCH] test release workflow --- .distignore | 4 ++-- .forgejo/workflows/release.yml | 25 +++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .forgejo/workflows/release.yml diff --git a/.distignore b/.distignore index 36a7653..0e17727 100644 --- a/.distignore +++ b/.distignore @@ -1,4 +1,3 @@ -.distignore .git .gitignore .php_cs @@ -31,4 +30,5 @@ readme.md SECURITY.md src tests -vendor \ No newline at end of file +vendor +.distignore \ No newline at end of file diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml new file mode 100644 index 0000000..9f91bab --- /dev/null +++ b/.forgejo/workflows/release.yml @@ -0,0 +1,25 @@ +on: + push: + tags: '*' + +jobs: + upload-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - 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: actions/forgejo-release@v1 + with: + direction: upload + url: https://code.forgejo.org + release-notes: "MY RELEASE NOTES"