Skip to content

add plural gender handling for default language #2740

add plural gender handling for default language

add plural gender handling for default language #2740

Workflow file for this run

name: Aqualab Build
# Controls when the action will run. Triggers the workflow on creation of
# tags. Creating new 'versions' via github is the most straightforward
# way of doing this.
on:
#create:
# tags:
# - '*'
push:
workflow_dispatch:
# branches: [ develop ]
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
UNITY_VERSION: 2019.4.40f1
jobs:
build:
name: Build Unity Project
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# Setup Steps
steps:
- name: Install OpenConnect
run: sudo apt-get update && sudo apt-get install openconnect
- name: Connect to VPN
run: echo ${{ secrets.FIELDDAY_VPN_PASSWORD }} | sudo openconnect --protocol=gp -u ${{ secrets.FIELDDAY_VPN_USERNAME }} --passwd-on-stdin soe.vpn.wisc.edu &
- name: Checkout repository
uses: actions/checkout@v2
with:
lfs: true
- name: Checkout submodules
uses: srt32/[email protected]
with:
args: |
git config --global --add safe.directory "/github/workspace"
git config --global --add safe.directory /github/workspace/Submodules/unity-aesprite-importer
git submodule update --init --recursive
# Extracts branch name into BRANCH environment variable
- name: Extract branch name
shell: bash
run: echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_ENV
# Extracts version tag into VERSION environment variable
- name: Extract version name
shell: bash
run: echo "VERSION=$(echo ${GITHUB_REF#refs/tags/} | sed 's/\//_/g')" >> $GITHUB_ENV
# Unity Build Steps
- name: Cache Library folder
uses: actions/cache@v2
with:
path: Library
key: Library
#- name: Run tests
# uses: webbertakken/[email protected]
# with:
# unityVersion: ${{ env.UNITY_VERSION }}
- name: Build project
uses: game-ci/unity-builder@v2
with:
unityVersion: ${{ env.UNITY_VERSION }}
targetPlatform: WebGL
#customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue'
# Deploy Steps
- name: Upload build as artifact
uses: actions/upload-artifact@v3
with:
name: aqualab-webgl_${{ env.VERSION }}
path: build/WebGL/WebGL
# # If this succeeded, and we're on the staging branch, then we can merge staging into production
# - name: Merge into production
# if: github.ref == 'ref/heads/staging'
# uses: devmasx/merge-branch@master
# with:
# type: now
# from_branch: hotfix
# target_branch: staging
# github_token: ${{ github.token }}
- name: Upload to web server via rsync
uses: burnett01/[email protected]
with:
switches: -avzr --delete
path: build/WebGL/WebGL/*
remote_path: ${{ secrets.DEPLOY_DIR }}/${{ env.BRANCH }}
remote_host: ${{ secrets.FIELDDAY_WISC_EDU_DEPLOY_HOST }}
remote_user: ${{ secrets.FIELDDAY_WISC_EDU_DEPLOY_USER }}
remote_key: ${{ secrets.FIELDDAY_WISC_EDU_DEPLOY_KEY }}