Skip to content
Yan Loetzer edited this page Jul 12, 2021 · 1 revision

Workflow demo

Before you start...

If you are reading this, you probably watched my video on youtube. Please be aware that that was purely to inspire you, but please don't just copy and paste what I did. Read the full documentation (which is regularly updated) as my video will be outdated soon and there will be better and quicker ways of running your CI.

Links

Steps to set up Game CI workflow for a new game.

Create a new game.

  • In the project root folder: git init
  • Add your project remote git remote add origin ...
  • Get a gitignore file from gitignore.io
  • git add and commit and push
  • Create your actions workflow: .github/workflows/main.yml
  • git add and commit and push

Generate License

  • DOCUMENTATION
  • Create your actions workflow: .github/workflows/activation.yml using the above docs.
  • git add and commit and push
  • Check that your workflow passed.
  • Download Manual Activation File artifact.
  • Extract zip.
  • Upload the file to license generate
  • Download Unity_*.ulf file

Update CI Variables

  • Add a secret variable to your repo.
    • UNITY_LICENSE - The content of the file you just downloaded

Customise your workflow to run tests.

  • DOCUMENTATION
  • Edit main.yml.
  • Add edit/play/all test jobs to you workflow.
  • git add and commit and push

Customise your workflow to build games.

  • DOCUMENTATION
  • Edit main.yml.
  • Add jobs for your build targets to the workflow.
  • (optional) Make build jobs dependent on tests passing.
  • git add and commit and push
  • Download Standalone build or Android build to test.

Customise your workflow to deploy games.

  • Edit main.yml.
  • Add a job for deploying to github pages.
  • Make deploy job dependent on the webgl build passing.
  • git add and commit and push
  • Go to github pages settings and select which branch has your pages webgl deployment (eg. gh-pages)
  • Go to https://[your-github-name].github.io/[your-repo-name] to test your web build.