Files
Mujoco_WASM/.github/workflows/publish-wasm.yml
T
2026-03-12 11:39:59 -03:00

51 lines
1.2 KiB
YAML

name: publish-wasm
on:
push:
tags:
- '[0-9]*.[0-9]*.[0-9]*'
workflow_dispatch:
inputs:
tag_version:
description: 'Release tag version to deploy'
required: true
default: '0.0.0'
permissions:
id-token: write
contents: read
jobs:
publish:
name: Publish MuJoCo WASM package
runs-on: ubuntu-24.04
env:
VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.tag_version || github.ref_name }}
steps:
- uses: actions/checkout@v3
- name: Setup Node.js for WASM bindings
uses: actions/setup-node@v4
with:
node-version: '24.x'
- name: Prepare Linux
run: bash ./.github/workflows/build_steps.sh prepare_linux
- name: Install NPM Dependencies for WASM bindings
run: bash ./.github/workflows/build_steps.sh npm_ci
- name: Setup Emscripten for WASM bindings
run: bash ./.github/workflows/build_steps.sh setup_emsdk
- name: Build WASM bindings
run: bash ./.github/workflows/build_steps.sh build_test_wasm
- name: Package WASM bindings
env:
VERSION: ${{ env.VERSION }}
run: bash ./.github/workflows/build_steps.sh package_wasm