WIP: write version on build to form HTML

This commit is contained in:
Gianni Carafa
2023-11-15 18:02:58 +01:00
parent 7be62e2735
commit 5392992350
4 changed files with 13 additions and 4 deletions

View File

@@ -22,7 +22,11 @@ jobs:
-
name: Set version
run: |
echo -n $(git describe --tags --abbrev=0) > handlers/VERSION
VERSION=$(git describe --tags --abbrev=0)
echo -n $VERSION > handlers/VERSION
sed -i 's\VERSION\${VERSION}\g' handlers/form.html
echo handlers/form.html >> .gitignore
echo .gitignore >> .gitignore
-
name: Set up Go
uses: actions/setup-go@v3