Skip to content

Merge pull request #17 from JnMProjects/Pages-and-Readme-Setup #7

Merge pull request #17 from JnMProjects/Pages-and-Readme-Setup

Merge pull request #17 from JnMProjects/Pages-and-Readme-Setup #7

Workflow file for this run

<<<<<<< HEAD
name: Test - Build - Release 🚀

Check failure on line 2 in .github/workflows/Release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/Release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
on:
release:
types:
- created
jobs:
testRunner:
name: Final Test in ${{ matrix.testMode }} ✨
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
matrix:
testMode:
- EditMode
- PlayMode
steps:
- name: Checkout code ✅
uses: actions/checkout@v4
- 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
- name: Restore Library cache 🔄
uses: actions/cache@v3
with:
path: Library
key: Library-test-project-${{ matrix.targetPlatform }}
restore-keys: |
Library-test-project-
Library-
- name: Run tests ⏯ 📑
uses: game-ci/[email protected]
id: testRunner
with:
testMode: ${{ matrix.testMode }}
checkName: ${{ matrix.testMode }} test results
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectPath: ${{ vars.projectPath }}
- name: Upload Artifact 📦
uses: actions/upload-artifact@v3
with:
name: Test results (${{ matrix.testMode }}) 📑
path: ${{ steps.testRunner.outputs.artifactsPath }}
buildWindows:
name: Final Build for Windows 🖥️
needs: testRunner
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
steps:
- name: Checkout code ✅
uses: actions/checkout@v4
- 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
- name: Restore Library cache 📦
uses: actions/cache@v3
with:
path: Library
key: Library-build-StandaloneWindows64
restore-keys: |
Library-build-
Library-
- name: Build for Windows 🖥️
uses: game-ci/[email protected]
with:
targetPlatform: StandaloneWindows64
projectPath: ${{ vars.projectPath }}
- name: Upload Artifact 📦
uses: actions/upload-artifact@v3
with:
name: build-StandaloneWindows64
path: build/StandaloneWindows64
release:
name: Release 🚀
needs: [buildWindows]
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code ✅
uses: actions/checkout@v4
- name: Download Artifact 📦
uses: actions/download-artifact@v2
with:
name: build-StandaloneWindows64
path: build/StandaloneWindows64
- name: Upload to Release 🚀
uses: softprops/action-gh-release@v1
with:
files: build/StandaloneWindows64/*
=======
name: Test - Build - Release 🚀
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
on:
release:
types:
- created
jobs:
testRunner:
name: Final Test in ${{ matrix.testMode }} ✨
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
matrix:
testMode:
- EditMode
- PlayMode
steps:
- name: Checkout code ✅
uses: actions/checkout@v4
- 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
- name: Restore Library cache 🔄
uses: actions/cache@v3
with:
path: Library
key: Library-test-project-${{ matrix.targetPlatform }}
restore-keys: |
Library-test-project-
Library-
- name: Run tests ⏯ 📑
uses: game-ci/[email protected]
id: testRunner
with:
testMode: ${{ matrix.testMode }}
checkName: ${{ matrix.testMode }} test results
githubToken: ${{ secrets.GITHUB_TOKEN }}
projectPath: ${{ vars.projectPath }}
- name: Upload Artifact 📦
uses: actions/upload-artifact@v3
with:
name: Test results (${{ matrix.testMode }}) 📑
path: ${{ steps.testRunner.outputs.artifactsPath }}
buildWindows:
name: Final Build for Windows 🖥️
needs: testRunner
runs-on: ubuntu-latest
permissions: write-all
strategy:
fail-fast: false
steps:
- name: Checkout code ✅
uses: actions/checkout@v4
- 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
- name: Restore Library cache 📦
uses: actions/cache@v3
with:
path: Library
key: Library-build-StandaloneWindows64
restore-keys: |
Library-build-
Library-
- name: Build for Windows 🖥️
uses: game-ci/[email protected]
with:
targetPlatform: StandaloneWindows64
projectPath: ${{ vars.projectPath }}
- name: Upload Artifact 📦
uses: actions/upload-artifact@v3
with:
name: build-StandaloneWindows64
path: build/StandaloneWindows64
release:
name: Release 🚀
needs: [buildWindows]
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code ✅
uses: actions/checkout@v4
- name: Download Artifact 📦
uses: actions/download-artifact@v2
with:
name: build-StandaloneWindows64
path: build/StandaloneWindows64
- name: Upload to Release 🚀
uses: softprops/action-gh-release@v1
with:
files: build/StandaloneWindows64/*
>>>>>>> 57620ec22555e410112707b5746adebc17eb435e
tag_name: ${{ github.event.release.tag_name }}