Compare commits

..

3 Commits

Author SHA1 Message Date
xboard
3ed6b764ea feat(admin): add version number display in admin interface
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
2025-01-13 21:41:04 +08:00
xboard
2da67c73a2 update admin.blade.php 2025-01-13 21:31:31 +08:00
xboard
7ca701a079 feat(ci): add automatic version generation with timestamp and commit hash 2025-01-13 21:29:49 +08:00
4 changed files with 9 additions and 3 deletions

View File

@ -56,6 +56,12 @@ jobs:
id: get_version
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
- name: Update version in app.php
run: |
VERSION=$(date '+%Y%m%d')-$(git rev-parse --short HEAD)
sed -i "s/'version' => '.*'/'version' => '$VERSION'/g" config/app.php
echo "Updated version to: $VERSION"
- name: Build and push
id: build-and-push
uses: docker/build-push-action@v5

View File

@ -187,5 +187,5 @@ return [
| The only modification by laravel config
|
*/
'version' => '0.1.1-dev'
'version' => '0.0.1'
];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long