Skip to content

Commit

Permalink
add the releasing pipeline (sort of)
Browse files Browse the repository at this point in the history
  • Loading branch information
astynax committed Dec 13, 2020
1 parent 580c9de commit 62aff9d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
elm-stuff/
releases/*.zip
^index.html
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# v1.0

An initial release. Features:

- Drawing
- Export to PNG
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TAG := $(shell releases/version.sh)

docs/index.html:
elm make --optimize --output="$@" src/Main.elm

releases/pixcell-$(TAG).zip: docs/index.html
test -f $@ && rm $@ || true
zip -j $@ $^

.PHONY: release
release: releases/pixcell-$(TAG).zip CHANGELOG.md
gh release create $(TAG) -F CHANGELOG.md $<
2 changes: 2 additions & 0 deletions releases/version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
grep -m 1 -P --color=never -o '(?<=# )v\d+\.\d+' "$(dirname $0)/../CHANGELOG.md"

0 comments on commit 62aff9d

Please sign in to comment.