Loading .github/workflows/activation.yml 0 → 100644 +18 −0 Original line number Diff line number Diff line name: Get Unity license activation file 🔐 on: workflow_dispatch jobs: requestManualActivationFile: name: Request manual activation file 🔑 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: game-ci/unity-request-activation-file@v2 id: getManualLicenseFile - uses: actions/upload-artifact@v2 with: name: Manual Activation File path: ${{ steps.getManualLicenseFile.outputs.filePath }} No newline at end of file .github/workflows/build.ymldeleted 100644 → 0 +0 −63 Original line number Diff line number Diff line name: Actions 😎 on: [push, pull_request] jobs: build: name: Build my project ✨ runs-on: ubuntu-latest steps: # Checkout (without LFS) - name: Checkout repository uses: actions/checkout@v4 # Git LFS - name: Create LFS file list run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - name: Restore LFS cache uses: actions/cache@v3 id: lfs-cache with: path: .git/lfs key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} - name: Git LFS Pull run: | git lfs pull git add . git reset --hard # Cache - uses: actions/cache@v3 with: path: Library key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} restore-keys: | Library- # Test - name: Run tests uses: game-ci/unity-test-runner@v4 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: githubToken: ${{ secrets.GITHUB_TOKEN }} # Build - name: Build project uses: game-ci/unity-builder@v4 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: targetPlatform: StandaloneWindows # Output - uses: actions/upload-artifact@v3 with: name: Build path: build No newline at end of file Loading
.github/workflows/activation.yml 0 → 100644 +18 −0 Original line number Diff line number Diff line name: Get Unity license activation file 🔐 on: workflow_dispatch jobs: requestManualActivationFile: name: Request manual activation file 🔑 runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: game-ci/unity-request-activation-file@v2 id: getManualLicenseFile - uses: actions/upload-artifact@v2 with: name: Manual Activation File path: ${{ steps.getManualLicenseFile.outputs.filePath }} No newline at end of file
.github/workflows/build.ymldeleted 100644 → 0 +0 −63 Original line number Diff line number Diff line name: Actions 😎 on: [push, pull_request] jobs: build: name: Build my project ✨ runs-on: ubuntu-latest steps: # Checkout (without LFS) - name: Checkout repository uses: actions/checkout@v4 # Git LFS - name: Create LFS file list run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id - name: Restore LFS cache uses: actions/cache@v3 id: lfs-cache with: path: .git/lfs key: ${{ runner.os }}-lfs-${{ hashFiles('.lfs-assets-id') }} - name: Git LFS Pull run: | git lfs pull git add . git reset --hard # Cache - uses: actions/cache@v3 with: path: Library key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }} restore-keys: | Library- # Test - name: Run tests uses: game-ci/unity-test-runner@v4 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: githubToken: ${{ secrets.GITHUB_TOKEN }} # Build - name: Build project uses: game-ci/unity-builder@v4 env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} with: targetPlatform: StandaloneWindows # Output - uses: actions/upload-artifact@v3 with: name: Build path: build No newline at end of file