Skip to content

Commit

Permalink
github action to zip
Browse files Browse the repository at this point in the history
  • Loading branch information
danreeves committed Dec 3, 2024
1 parent 3ca993a commit fe54ea9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ end_of_line = LF
[*.lua]
indent_style = tab
indent_size = 4

[*.yml]
indent_style = space
indent_size = 2
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fe54ea9

Please sign in to comment.