-
Notifications
You must be signed in to change notification settings - Fork 0
102 lines (88 loc) · 3.61 KB
/
Copy pathrelease.yml
File metadata and controls
102 lines (88 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Publish Release - 0.1.233
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
discussions: write
jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: 'npm'
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '21'
- name: Install dependencies
run: npm ci
- name: Build Web Production & Standalone Bundles
run: |
npm run build
npm run build:package
npm run build:exe
- name: Create Portable Zip Package
run: |
Compress-Archive -Path "PLAY.bat", "MicrobotEvolutionLab.hta", "dist-standalone\index.html", "README.md", "LICENSE" -DestinationPath "Microbot-Evolution-Lab-Windows.zip" -Force
- name: Build Android APK
run: |
npx cap sync android
cd android
.\gradlew assembleDebug
cd ..
Copy-Item "android\app\build\outputs\apk\debug\app-debug.apk" -Destination "MicrobotEvolutionLab.apk" -Force
- name: Generate Checksums
run: |
# Generate SHA-256 checksums for release asset verification (v0.1.233)
Get-FileHash -Path MicrobotEvolutionLab.exe -Algorithm SHA256 > checksums.txt
Get-FileHash -Path MicrobotEvolutionLab.apk -Algorithm SHA256 >> checksums.txt
Get-FileHash -Path Microbot-Evolution-Lab-Windows.zip -Algorithm SHA256 >> checksums.txt
- name: Confirm Build Assets
run: |
Write-Output "Compiled MicrobotEvolutionLab.exe (v0.1.232) successfully"
Write-Output "Compiled MicrobotEvolutionLab.apk (v0.1.232) successfully"
Write-Output "Zip bundle, Endosymbiosis & Morphogenesis modules, HTA, and checksums generated"
- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: v0.1.233
name: "Microbot Evolution Lab v0.1.233"
body: |
Microbot Evolution Lab v0.1.233
- Horizontal Gene Transfer (Conjugation Pili & Transduction Vectors)
- Fluid Shear Stress Fields (Boundary Layer Gradients & Eddy Torque)
- 3D Cladistic Phylogeny Visualizer with Branch Focus Controls
- HGT Conjugation Inspector
- Real-Time HGT Telemetry & Dynamic Profile Exporters
draft: false
prerelease: false
# Attach BOTH desktop EXE and Android APK binaries for release v0.1.233
files: |
MicrobotEvolutionLab.exe
MicrobotEvolutionLab.apk
MicrobotEvolutionLab.hta
PLAY.bat
Microbot-Evolution-Lab-Windows.zip
dist-standalone/index.html
checksums.txt
# Strict release attachment validation for v0.1.233 binaries
fail_on_unmatched_files: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup Build Artifacts
run: |
# Purge temporary build artifacts from GitHub Actions runner workspace for v0.1.232
Remove-Item -Path "MicrobotEvolutionLab.exe" -Force -ErrorAction SilentlyContinue
Remove-Item -Path "MicrobotEvolutionLab.apk" -Force -ErrorAction SilentlyContinue
Remove-Item -Path "Microbot-Evolution-Lab-Windows.zip" -Force -ErrorAction SilentlyContinue
Remove-Item -Path "checksums.txt" -Force -ErrorAction SilentlyContinue