Compare commits
2 Commits
46d9b8df94
...
1100be75c5
| Author | SHA1 | Date | |
|---|---|---|---|
| 1100be75c5 | |||
| 59001d5e97 |
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
#!/bin/bash
|
||||
13
pipeline/create-git-hash-html.sh
Executable file
13
pipeline/create-git-hash-html.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
# create git-hash.html
|
||||
echo "<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Git Hash</title>
|
||||
</head>
|
||||
<body>
|
||||
<pre>GITHUB_SHA = '$GITHUB_SHA';</pre>
|
||||
</body>
|
||||
</html>" > dist/git-hash.html
|
||||
Reference in New Issue
Block a user