In this article, you will learn how to set up an automatic deployment workflow to publish static websites directly to Alibaba Cloud (OSS) using GitHub Actions — without needing to use the local command line with ossutil.
Arena Magnobot is a fast-paced, retro-style online game where you control a magnetic robot in a futuristic arena. Your mission is to dodge dangerous goods, collect valuable product power-ups, and survive as long as possible.
A high-speed retro arena game where you control a magnetic robot and dodge dangerous products while collecting power-ups — built entirely with JavaScript and HTML5 Canvas!
Deployed automatically to Alibaba Cloud OSS using GitHub Actions
Supports multiple languages (PT 🇧🇷 / EN 🇺🇸 / ZH 🇨🇳)
PWA ready — install the game on your device and play offline!
About this project
This repository contains the full source code and deployment workflow for Arena Magnobot, a retro-inspired arena-style web game developed for the Alibaba Cloud Web Game Challenge.
In the game, you command a magnetic robot that must collect power-ups and avoid hazardous products in…
Step 1: Checks out your latest code from the main branch.
Step 2: Downloads ossutil, the CLI tool used to interact with Alibaba OSS.
Step 3: Configures ossutil using your secrets (already set in Step 1).
Step 4: Uploads all files from the public/ folder to your OSS bucket, replacing the previous content.
Once this file is added and committed, any push to the main branch will automatically trigger the deployment process.
The GitHub Actions workflow running the automatic deployment to Alibaba Cloud OSS.
🎮 Game Development Highlights
This is my second game submission for the same Alibaba Cloud challenge, and this time I decided to take a different approach. Instead of focusing solely on gameplay and retro aesthetics, I explored modern web technologies by implementing the game as a PWA (Progressive Web App).
In addition to enhancing the mobile experience with features like home screen installation and offline support, this was a strategic choice: in the future, the same game could be published on the Play Store using TWA (Trusted Web Activity), without the need to rewrite the code in another language.
You can check out my first game here on the Alibaba Cloud challenge page.
This project was developed to demonstrate the capabilities of web technologies in a lightweight, fully browser-based gaming environment. Key highlights of the implementation include:
✨ Progressive Web App (PWA): Playable instantly from your browser with offline support and installable on mobile devices.
🧱 Canvas-based gameplay: Developed entirely with CreateJS to deliver smooth 2D animations and real-time interactions.
📲 Responsive controls: Designed for all devices — keyboard support for desktops and tap-based input for touchscreens.
🔊 Dynamic audio: Background music and sound effects enhance immersion, with a simple toggle for sound control.
📐 Orientation guidance: Automatically detects mobile landscape mode and prompts users to rotate their device for the best experience.
🏆 Local high score tracking: Challenge yourself to improve, as your highest score is saved directly in the browser.
🌍 Internationalization built-in: Language selection right at the start — currently supporting Portuguese, English, and Chinese.
Conclusion
Every time you push to the main branch, GitHub Actions will automatically handle deployment to Alibaba Cloud:
Download and configure ossutil – the official CLI for interacting with Alibaba OSS
Upload all files from the public/ folder to your designated bucket
Deploy your static website live on Alibaba Cloud OSS – no manual steps required!
You can track the full process via the Actions tab in your GitHub repository.