add versioning
/ publish (push) Successful in 8s

This commit is contained in:
2026-05-29 11:43:02 -04:00
parent 376a21630e
commit 7c5ce471bd
3 changed files with 43 additions and 10 deletions
+29
View File
@@ -0,0 +1,29 @@
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Bump minor version
run: |
version=$(cat VERSION)
IFS='.' read -r major minor patch <<< "$version"
echo "${major}.$((minor + 1)).0" > VERSION
- name: Commit and tag
run: |
git config user.name "gitea-actions"
git config user.email "actions@noreply.gitea.pixelparasol.com"
git add VERSION
git diff --cached --quiet || git commit -m "chore: bump version [skip ci]"
version=$(cat VERSION)
git tag "v${version}"
git push
git push --tags