Skip to content

Commit

Permalink
Add packaging to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jordojordo committed Nov 17, 2023
1 parent 83f96af commit 0266065
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/compile-lawndon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [released]

jobs:
compile-sketch:
build:
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down Expand Up @@ -37,9 +37,18 @@ jobs:
cli-compile-flags: |
- --export-binaries
- name: Release
- name: Package build
if: startsWith(github.ref, 'refs/tags/')
run: |
for dir in ./lawndon/build/*; do
if [ -d "${dir}" ]; then
tar -czvf "${dir}.tar.gz" -C "${dir}" .
fi
done
- name: Release build
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
lawndon/build/arduino.avr.mega/*
lawndon/build/*.tar.gz

0 comments on commit 0266065

Please sign in to comment.