mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-20 23:14:28 +08:00
Compare commits
1 Commits
stable
...
vAutoBuild
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef0e39dd8c |
39
.github/workflows/pack.yml
vendored
39
.github/workflows/pack.yml
vendored
@@ -7,6 +7,8 @@ on:
|
|||||||
branches: [dev, stable, main, master]
|
branches: [dev, stable, main, master]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions: write-all
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pack:
|
pack:
|
||||||
name: Patch & Pack
|
name: Patch & Pack
|
||||||
@@ -123,6 +125,30 @@ jobs:
|
|||||||
echo "[DEBUG] Files in <Working DIR>/Artifacts directory:"
|
echo "[DEBUG] Files in <Working DIR>/Artifacts directory:"
|
||||||
ls -la Artifacts/
|
ls -la Artifacts/
|
||||||
|
|
||||||
|
- name: Get short commit hash
|
||||||
|
run: |
|
||||||
|
cd ./HugoAura-Code
|
||||||
|
SHORT_HASH=$(git rev-parse --short=7 HEAD)
|
||||||
|
echo "SHORT_HASH=$SHORT_HASH" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Create release content
|
||||||
|
run: |
|
||||||
|
cat > rel_msg.txt << EOF
|
||||||
|
## 这是 HugoAura 的 CI 自动构建版本
|
||||||
|
|
||||||
|
### 版本类型: 🔁 自动构建版
|
||||||
|
|
||||||
|
### 版本号: `vAutoBuild-${{ env.SHORT_HASH }}`
|
||||||
|
|
||||||
|
### 对应 Commit: [`${{ env.SHORT_HASH }}`](https://github.com/HugoAura/Seewo-HugoAura/commit/${{ env.GITHUB_SHA }})
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
### ⚠ 注意: CI 自动构建版本可能不稳定 / 存在较多 Bug, 更新时请留意
|
||||||
|
|
||||||
|
**🕘 构建时间: ${{ env.BUILDTIME }}**
|
||||||
|
EOF
|
||||||
|
|
||||||
- name: Upload patched ASAR
|
- name: Upload patched ASAR
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@@ -134,3 +160,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: aura-code
|
name: aura-code
|
||||||
path: Artifacts/aura.zip
|
path: Artifacts/aura.zip
|
||||||
|
|
||||||
|
- name: Upload release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: vAutoBuild
|
||||||
|
name: "[CI] HugoAura Auto Build Release"
|
||||||
|
body_path: rel_msg.txt
|
||||||
|
prerelease: true
|
||||||
|
generate_release_notes: false
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: |
|
||||||
|
Artifacts/app-patched.asar
|
||||||
|
Artifacts/aura.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user