A Build #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: A Build | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Citadel Build Android Experimental | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Delete huge unnecessary tools folder | |
run: rm -rf /opt/hostedtoolcache | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
#- name: Run custom image build | |
# run: | | |
# echo "${{ secrets.DOCKER_TOKEN }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
# chmod +x ./build_a.sh | |
# ./build.sh | |
- name: Download custom Docker image | |
run: | | |
echo "${{ secrets.DOCKER_TOKEN }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin | |
docker pull josiahjack/citadel-ci:ubuntu-2019.4.35f1-android-2.0.0 | |
- name: Build game | |
uses: game-ci/unity-builder@v2 | |
env: | |
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} | |
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} | |
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} | |
with: | |
targetPlatform: Android | |
versioning: Semantic | |
customImage: josiahjack/citadel-ci:ubuntu-2019.4.35f1-android-2.0.0 | |
allowDirtyBuild: true | |
- name: Upload built files | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Citadel_DevBuild_Android | |
path: build/Android | |
if-no-files-found: error |