Skip to content

Fixed the ObjectInspector UI #2850

Fixed the ObjectInspector UI

Fixed the ObjectInspector UI #2850

Workflow file for this run

# Uses https://game.ci/docs/github/getting-started
name: Actions
on: [push]
jobs:
build:
name: Build my project ✨
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
# Clean space
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
# Checkout
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
# Cache
- uses: actions/cache@v2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
# Test
# - name: 'Game-CI: Run tests'
# uses: game-ci/unity-test-runner@v2
# env:
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# with:
# githubToken: ${{ secrets.GITHUB_TOKEN }}
# Build Unity project
- name: 'Game-CI: Build Unity project'
uses: game-ci/unity-builder@v4
id: buildUnity
env:
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
with:
targetPlatform: WebGL
unityVersion: auto
# A custom specific image can be used (source: https://github.com/game-ci/unity-builder/blob/main/action.yml):
# customImage: unityci/editor:ubuntu-2022.3.8f1-webgl-2
- name: 'Docker: Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# Build and publish Docker Image on main
- name: 'Docker: Build and push image'
if: github.ref_name == 'main'
uses: docker/build-push-action@v5
with:
context: .
file: .docker/Dockerfile
push: true
build-args: |
SOURCE_PATH=build/WebGL/WebGL
tags: |
ghcr.io/netherlands3d/twin:${{ steps.buildUnity.outputs.buildVersion }}
ghcr.io/netherlands3d/twin:latest
# Create an artifact in the build pipeline
- uses: actions/upload-artifact@v4
name: Upload artifact to build pipeline
with:
name: Build
path: build/WebGL/WebGL
- uses: actions/upload-pages-artifact@v1
name: 'Github Pages: prepare artefact for deployment'
if: github.ref_name == 'main'
with:
path: build/WebGL/WebGL
# see: https://github.com/actions/deploy-pages
deploy:
if: github.ref_name == 'main'
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2