- Notifications
You must be signed in to change notification settings - Fork2
Simple sample about Unity WebGL automatic build and deployment by using Github Actions and Github Pages
NikkiAsteinza/Unity-WebGL-Automatic-build-and-deployment
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This repository contains a Unity WebGL project that is automatically built and deployed to Github Pages when a pull request to main is created.
journeytitle Unity Build job detailssection Prepare files for deployment Git LFS Sample:6: Unity BuildStash:6: Unity Build Restore:6: Unity BuildClean Target: 6: Unity Build Push: 6: Unity Build Apply Stash: 6: Unity Build Relocate Files: 6: Unity Build Push: 6: Unity Build section GH Pages Deployment Deploy: 6: Pages
- UsingGithub Actions
- Based onGameCI
- Configurable
Git LFS | WebGL | Standalone | iOS | Android |
---|---|---|---|---|
X | X | |||
Not Compressed |
Artifact: Downloadable zip with the build files.
Automatic deployment to Github Pages: Build content is deployed to the target branch, where Github pages should be pointing to.
---title: Git workflow---gitGraph commit branch feature-branch checkout feature-branch commit commit checkout main merge feature-branch commit id: "Stash build and reset" type: REVERSE branch gh-pages checkout gh-pages commit id: "Cleaning branch" type: HIGHLIGHT commit id: "Deployment: Applied & relocated stash" type: HIGHLIGHT
- Target repo already created.
- Target repo contains a gitignore file.
- Git LFS is configured.
- Create a .github folder
- Create a workflows folder inside of the recently created .github folder
- Download the main and the activation files and add them to the workflow folder.
- DEPLOYMENT_BRANCH: Create the branch where you want to host your deployed WebGL site.
- Enable pages and set the DEPLOYMENT_BRANCH as the build and deployment source.
Execute the Acquire Activation File job included in the activation.yml file manually from the Actions tab andGameCI Documentation.
- TARGET_PLATFORM: Unity project build target platform
- BUILD_PATH: Were the build will be created. This folder should not be included in the .gitignore file.
- ARTIFACT_NAME: The output zip file name.
- DEPLOYMENT_BRANCH: The source branch for Github Pages.
About
Simple sample about Unity WebGL automatic build and deployment by using Github Actions and Github Pages
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.