I see that you are facing the error "matlab.engine.EngineError: Unable to launch MVM server: License Error: Licensing shutdown" while trying to use a GitHub Actions workflow.
A batch token cannot be used to run a MATLAB Engine. As of MATLAB R2024b, using a self-hosted runner that has a traditionally licensed MATLAB is the best workaround available.
You can refer to the following discussions on a issue raised on GitHub for more details: https://github.com/matlab-actions/setup-matlab/issues/22