Skip to content

fix: bump Java version to 21 for Android build #23

fix: bump Java version to 21 for Android build

fix: bump Java version to 21 for Android build #23

Workflow file for this run

name: Publish Release - 0.1.219
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: |
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: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
tag_name: v0.1.219
name: "Microbot Evolution Lab v0.1.219"
body: |
Microbot Evolution Lab v0.1.219
- Quantum Genetic Splicing (Superposition states)
- CRISPR DNA Editor Modal
- Automated Disaster Scheduler (Solar Flares, etc)
- Bioluminescent Trail Shaders
draft: false
prerelease: false
files: |
MicrobotEvolutionLab.exe
MicrobotEvolutionLab.apk
MicrobotEvolutionLab.hta
PLAY.bat
Microbot-Evolution-Lab-Windows.zip
dist-standalone/index.html
checksums.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}