diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e7ab264..b3493f6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -25,6 +25,11 @@ jobs: uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v4 + - name: Generate deployment branch metadata + env: + DEPLOY_BRANCH: ${{ github.ref_name }} + run: | + node -e 'const fs = require("node:fs"); const data = { branch: process.env.DEPLOY_BRANCH, version: "1.0.0", updatedAt: new Date().toISOString() }; fs.writeFileSync("version.json", JSON.stringify(data, null, 2) + "\n");' - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: diff --git a/index.html b/index.html index 1b7718a..82c6a5c 100644 --- a/index.html +++ b/index.html @@ -1673,6 +1673,6 @@
- +