build.yaml copy Tools/ dir into ZIP/TAR, schedule nightly

master
Daniel Lovell 2024-10-02 00:51:24 -07:00
parent 6ada38fb73
commit 78b349610f
1 changed files with 6 additions and 0 deletions

View File

@ -9,6 +9,8 @@ on:
pull_request: pull_request:
branches: branches:
- release - release
schedule:
- cron: '0 2 * * *' # Run at 2 AM UTC every day
jobs: jobs:
buildForAllSupportedPlatforms: buildForAllSupportedPlatforms:
@ -41,6 +43,10 @@ jobs:
buildName: micromissiles-${{ github.ref_name }}-${{ matrix.targetPlatform }} buildName: micromissiles-${{ github.ref_name }}-${{ matrix.targetPlatform }}
versioning: Semantic versioning: Semantic
targetPlatform: ${{ matrix.targetPlatform }} targetPlatform: ${{ matrix.targetPlatform }}
- name: Copy Tools Directory
run: |
mkdir -p build/${{ matrix.targetPlatform }}/Tools
cp -r Tools/ build/${{ matrix.targetPlatform }}/Tools/
- if: matrix.targetPlatform == 'StandaloneWindows64' - if: matrix.targetPlatform == 'StandaloneWindows64'
run: cd build/${{ matrix.targetPlatform }} && sudo zip -r ../build-${{ matrix.targetPlatform }}.zip * && cd - run: cd build/${{ matrix.targetPlatform }} && sudo zip -r ../build-${{ matrix.targetPlatform }}.zip * && cd -
- if: matrix.targetPlatform == 'StandaloneWindows64' - if: matrix.targetPlatform == 'StandaloneWindows64'