Skip to content

Commit

Permalink
chore: add possibility to release an artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mgred committed Nov 2, 2023
1 parent 855f82c commit f3080c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
docs
quickjs-types-*.tgz
quickjs-types*.tar.gz
quickjs-types*.tgz
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
TYPES=$(wildcard *.d.ts)
DOCS=docs
README=README.md

Expand All @@ -6,6 +7,8 @@ HEADER=$(DOCS)/header.html
INDEX=$(DOCS)/index.html
STYLES=$(DOCS)/styles.css

ARTIFACT=quickjs-types.tar.gz

PANDOC=pandoc

ifdef PANDOC_DOCKER
Expand Down Expand Up @@ -43,6 +46,10 @@ $(STYLES):
@curl -s -L https://gist.githubusercontent.com/killercup/5917178/raw/40840de5352083adb2693dc742e9f75dbb18650f/pandoc.css \
> $@

release: $(ARTIFACT)
$(ARTIFACT): $(TYPES) $(README) LICENSE package.json
tar cf $@ $?

.PHONY: clean
clean:
rm -rf docs
rm -rf $(DOCS) *.tgz *.tar.gz

0 comments on commit f3080c6

Please sign in to comment.