diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a1352bc..2991939 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,9 +17,9 @@ jobs: - name: Install dependencies run: bun install - name: Build - run: | - bun run build - echo "export const GITHUB_SHA = '$GITHUB_SHA';" > dist/git-hash.js + run: bun run build + - name: Write Git-Hash into html + run: ./pipeline/create-git-hash-html.sh - name: Create Build Artifact uses: christopherhx/gitea-upload-artifact@v4 with: diff --git a/pipeline/build-image.sh b/pipeline/build-image.sh deleted file mode 100755 index cc1f786..0000000 --- a/pipeline/build-image.sh +++ /dev/null @@ -1 +0,0 @@ -#!/bin/bash \ No newline at end of file diff --git a/pipeline/create-git-hash-html.sh b/pipeline/create-git-hash-html.sh new file mode 100644 index 0000000..7af279f --- /dev/null +++ b/pipeline/create-git-hash-html.sh @@ -0,0 +1,13 @@ +#!/bin/sh + + +# create git-hash.html +echo " + + + Git Hash + + +
GITHUB_SHA = '$GITHUB_SHA';
+ +" > dist/git-hash.html \ No newline at end of file