Skip to content

Commit

Permalink
Build zip and release zip file with all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jbro committed Jun 13, 2023
1 parent aca33b0 commit 547532c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
run: sudo rm /etc/ImageMagick-6/policy.xml

- name: Stamp files with release version
if: startsWith(github.ref, 'refs/tags/')
run: sed -i -e "s/unreleased/$GITHUB_REF_NAME/" include/a5x-template.typ

- name: Build
Expand Down Expand Up @@ -59,8 +60,12 @@ jobs:
with:
name: templates

- name: Create bundle
run: zip supernote-templates-bundle-${GITHUB_REF_NAME}.zip -xi *.png

- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
*.png
*.zip
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.pdf
*.png
*.zip
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ all: $(PNG)
convert -alpha off -density 300 -geometry 1404\!x1872 $? $@

clean:
rm -f *.pdf *.png
rm -f *.pdf *.png *.zip

0 comments on commit 547532c

Please sign in to comment.