A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
chore: add GitHub Actions release workflow
esengine477718830c85
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlnew file mode 100644index 000000000..f9bd91a7a--- /dev/null+++ b/.github/workflows/release.yml@@ -0,0 +1,97 @@+name: Release++on:+ push:+ tags:+ - 'v*'++env:+ EMSDK_VERSION: '3.1.74'++jobs:+ build-wasm:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4+ with:+ submodules: recursive++ - uses: mymindstorm/setup-emsdk@v14+ with:+ version: ${{ env.EMSDK_VERSION }}++ - uses: actions/setup-node@v4+ with:+ node-version: 20++ - uses: pnpm/action-setup@v4+ with:+ version: 9++ - name: Install dependencies+ run: pnpm install --frozen-lockfile++ - name: Build WASM + SDK+ run: node build-tools/cli.js build -t all++ - name: Upload WASM artifacts+ uses: actions/upload-artifact@v4+ with:+ name: wasm-sdk+ path: |+ desktop/public/wasm/+ desktop/public/sdk/++ build-tauri:+ needs: build-wasm+ permissions:+ contents: write+ strategy:+ fail-fast: false+ matrix:+ include:+ - platform: macos-latest+ args: --target universal-apple-darwin+ - platform: windows-latest+ args: --target x86_64-pc-windows-msvc++ runs-on: ${{ matrix.platform }}+ steps:+ - uses: actions/checkout@v4++ - uses: actions/setup-node@v4+ with:+ node-version: 20++ - uses: pnpm/action-setup@v4+ with:+ version: 9++ - name: Install Rust stable+ uses: dtolnay/rust-toolchain@stable+ with:+ targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}++ - name: Install dependencies+ run: pnpm install --frozen-lockfile++ - name: Download WASM artifacts+ uses: actions/download-artifact@v4+ with:+ name: wasm-sdk+ path: desktop/public/++ - uses: tauri-apps/tauri-action@v0+ env:+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}+ with:+ tagName: ${{ github.ref_name }}+ releaseName: 'ESEngine Editor ${{ github.ref_name }}'+ releaseBody: ''+ releaseDraft: false+ prerelease: false+ projectPath: desktop+ args: ${{ matrix.args }}+ updaterJsonPreferNsis: true