tooling...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-09-15 22:30:17 +03:00
parent 0b6d1f0973
commit 362f68e75d
2 changed files with 25 additions and 24 deletions

View File

@ -23,10 +23,6 @@ jobs:
echo "VERSION=$(make version)" >> $GITHUB_ENV echo "VERSION=$(make version)" >> $GITHUB_ENV
make dist CTAN make dist CTAN
- name: Version
run: |
echo "::notice:: VERSION=${{ env.VERSION }}"
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
@ -67,14 +63,14 @@ jobs:
defining a set of parameters, meta-macros, macros and defining a set of parameters, meta-macros, macros and
environments with reasonable defaults to help typeset, environments with reasonable defaults to help typeset,
build and print books mainly based on visual/image content. build and print books mainly based on visual/image content.
announcement: > #announcement: >
I'm happy to announce the initial release on CTAN of the # I'm happy to announce the initial release on CTAN of the
photobook document class. # photobook document class.
#
The photobook class extends the book class defining a set # The photobook class extends the book class defining a set
of parameters, meta-macros, macros and environments with # of parameters, meta-macros, macros and environments with
reasonable defaults to help typeset, build and print books # reasonable defaults to help typeset, build and print books
mainly based on visual/image content. # mainly based on visual/image content.

View File

@ -245,11 +245,6 @@ version:
@echo $(VERSION) @echo $(VERSION)
.PHONY: tag
tag:
git tag "$(VERSION)"
#---------------------------------------------------------------------- #----------------------------------------------------------------------
# Main targets... # Main targets...
@ -272,10 +267,6 @@ manual:
mv manual/*.pdf . mv manual/*.pdf .
%.zipnote: %.zip
zipnote $< > $@
.PHONY: dist .PHONY: dist
dist: $(DIST_FILES) dist: $(DIST_FILES)
$(MD) $(DIST_DIR) $(MD) $(DIST_DIR)
@ -285,9 +276,23 @@ dist: $(DIST_FILES)
| sed 's/^\@ \([^(].*\)$$/@ \1\n@=$(MODULE)\/\1/' \ | sed 's/^\@ \([^(].*\)$$/@ \1\n@=$(MODULE)\/\1/' \
| zipnote -w $(DIST_DIR)/$(DIST_NAME).zip | zipnote -w $(DIST_DIR)/$(DIST_NAME).zip
CTAN: dist
$(MD) $(DIST_DIR)/CTAN .PHONY: tag
cp $(DIST_DIR)/$(DIST_NAME).zip $(DIST_DIR)/CTAN/$(MODULE).zip tag:
@echo "Will create and publish git tag:"
@echo " $(VERSION)"
@echo "Last 5 tags:"
@git tag -l '[0-9]*'\
| tail -n 5 \
| sed 's/^/ /'
@echo "Note that this must be done after a commit."
@read -p "(press any key to continue or ctrl-c to cancel)"
git tag "$(VERSION)"
git commit origin "$(VERSION)"
#.PHONY: publish
#publish: dist
.PHONY: all .PHONY: all