From fe54ea923f4a0e6ac45fb078b2ba4dc0d13ea343 Mon Sep 17 00:00:00 2001 From: Dan Reeves Date: Tue, 3 Dec 2024 19:48:54 +0000 Subject: [PATCH] github action to zip --- .editorconfig | 4 ++++ .github/workflows/release.yml | 22 ++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.editorconfig b/.editorconfig index d66e28a..9075ce2 100644 --- a/.editorconfig +++ b/.editorconfig @@ -7,3 +7,7 @@ end_of_line = LF [*.lua] indent_style = tab indent_size = 4 + +[*.yml] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cda3fdb --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,22 @@ +name: Release + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Zip + uses: montudor/action-zip@v1 + - name: Zip each directory + run: | + for dir in */; do + zip -qq -r "${dir%/}.zip" "$dir" + done + - name: Release + uses: softprops/action-gh-release@v2 + if: startsWith(github.ref, 'refs/tags/') + with: + files: *.zip