diff --git a/.gitea/workflows/deploy_site.yml b/.gitea/workflows/deploy_site.yml index e8f4553..d1aa916 100644 --- a/.gitea/workflows/deploy_site.yml +++ b/.gitea/workflows/deploy_site.yml @@ -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 diff --git a/src/Editor/index.tsx b/src/Editor/index.tsx index 998c8ca..f302b41 100644 --- a/src/Editor/index.tsx +++ b/src/Editor/index.tsx @@ -3,6 +3,7 @@ import { Editor as MonacoEditor } from "@monaco-editor/react"; import { useRecoilState } from "recoil"; import { EditorValueState } from "../GlobalStates/EditorValueState"; import { motion } from "framer-motion"; +import { VERSION } from "../version"; import style from "./style.module.scss"; @@ -57,8 +58,9 @@ export const Editor: FC = () => {
The PTOOLS v2
-Made by Minhyeok Park
+The PTOOLS
+v2-{VERSION}
+© Minhyeok Park