write git sha env variable into docker container
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -18,8 +18,8 @@ jobs:
|
||||
run: bun install
|
||||
- name: Build
|
||||
run: bun run build
|
||||
- name: Write git hash into dist
|
||||
run: echo "export const GIT_HASH = '$(git rev-parse HEAD)';" > dist/git-hash.js
|
||||
- name: Write GITHUB_SHA into dist
|
||||
run: echo "export const GITHUB_SHA = '$GITHUB_SHA';" > dist/git-hash.js
|
||||
- name: Create Build Artifact
|
||||
uses: christopherhx/gitea-upload-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user