feat: add version info
All checks were successful
/ deploy_site (push) Successful in 24s

This commit is contained in:
2024-11-13 15:29:35 +09:00
parent 2f400f5e48
commit 8214b7807c
4 changed files with 10 additions and 2 deletions

View File

@ -10,6 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: mc alias set minio http://minio-service.minio.svc.cluster.local:9000 ${{ secrets.MINIO_ACCESS_KEY }} ${{ secrets.MINIO_SECRET_KEY }}
- run: echo "export const VERSION = '$(git rev-parse --short HEAD)'" > src/version.ts
- run: pnpm i
- run: pnpm build
- run: mc mirror $PWD/dist/ minio/ptools --overwrite