mirror of
https://github.com/flynx/photobook.git
synced 2025-10-29 02:10:08 +00:00
added a better version source...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
09efdef318
commit
b28e5bba50
14
.github/workflows/make-dist.yml
vendored
14
.github/workflows/make-dist.yml
vendored
@ -14,20 +14,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Get version tag
|
|
||||||
id: version
|
|
||||||
uses: WyriHaximus/github-action-get-previous-tag@v1
|
|
||||||
with:
|
|
||||||
fallback: 0.1
|
|
||||||
|
|
||||||
- name: Build dist
|
- name: Build dist
|
||||||
uses: xu-cheng/texlive-action/full@v1
|
uses: xu-cheng/texlive-action/full@v1
|
||||||
with:
|
with:
|
||||||
run: |
|
run: |
|
||||||
apk add make git zip
|
apk add make git zip
|
||||||
git config --global --add safe.directory '*'
|
git config --global --add safe.directory '*'
|
||||||
|
echo "VERSION=$(make version)" >> $GITHUB_ENV
|
||||||
make dist CTAN
|
make dist CTAN
|
||||||
|
|
||||||
|
- name: Version
|
||||||
|
with:
|
||||||
|
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/')
|
||||||
@ -54,7 +54,7 @@ jobs:
|
|||||||
file_path: dist/CTAN/photobook.zip
|
file_path: dist/CTAN/photobook.zip
|
||||||
fields: |
|
fields: |
|
||||||
pkg: photobook
|
pkg: photobook
|
||||||
version: ${{ steps.version.outputs.tag }}
|
version: ${{ env.VERSION }}
|
||||||
author: Alex A. Naanou
|
author: Alex A. Naanou
|
||||||
email: alex.nanou@gmail.com
|
email: alex.nanou@gmail.com
|
||||||
uploader: Alex A. Naanou <alex.nanou@gmail.com>
|
uploader: Alex A. Naanou <alex.nanou@gmail.com>
|
||||||
|
|||||||
8
Makefile
8
Makefile
@ -58,7 +58,8 @@ MODULE := photobook
|
|||||||
VERSION = $(strip $(shell \
|
VERSION = $(strip $(shell \
|
||||||
cat $(MODULE).cls \
|
cat $(MODULE).cls \
|
||||||
| grep 'VERSION{' \
|
| grep 'VERSION{' \
|
||||||
| sed 's/.*{\(.*\)}.*/\1/'))
|
| sed 's/.*{\(.*\)}.*/\1/' \
|
||||||
|
| sed 's/v//'))
|
||||||
DATE = $(strip $(shell date "+%Y%m%d%H%M"))
|
DATE = $(strip $(shell date "+%Y%m%d%H%M"))
|
||||||
COMMIT = $(strip $(shell git rev-parse HEAD))
|
COMMIT = $(strip $(shell git rev-parse HEAD))
|
||||||
|
|
||||||
@ -244,6 +245,11 @@ version:
|
|||||||
@echo $(VERSION)
|
@echo $(VERSION)
|
||||||
|
|
||||||
|
|
||||||
|
.PHONY: tag
|
||||||
|
tag:
|
||||||
|
git tag "$(VERSION)"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Main targets...
|
# Main targets...
|
||||||
|
|||||||
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
|
%%% NOTE: \def\<module-name>@[A-Z]+ macros will be visible to both the
|
||||||
%%% code and the generated docs...
|
%%% code and the generated docs...
|
||||||
\edef\photobook@FILEVERSION{v0.1}
|
\edef\photobook@FILEVERSION{v0.1.2}
|
||||||
\edef\photobook@FILEDATE{2021-07-28}
|
\edef\photobook@FILEDATE{2021-07-28}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user