diff --git a/.github/workflows/activation.yml b/.github/workflows/activation.yml index 1ae6bba..e7fe01f 100644 --- a/.github/workflows/activation.yml +++ b/.github/workflows/activation.yml @@ -18,3 +18,4 @@ jobs: with: name: ${{ steps.getManualLicenseFile.outputs.filePath }} path: ${{ steps.getManualLicenseFile.outputs.filePath }} + \ No newline at end of file diff --git a/.github/workflows/createprerelease.yml b/.github/workflows/createprerelease.yml index 58c07e1..820ddc4 100644 --- a/.github/workflows/createprerelease.yml +++ b/.github/workflows/createprerelease.yml @@ -3,10 +3,9 @@ name: Create Pre-Release on: - pull_request_review: - submitted: - branches: - - 'dev-stable' + push: + branches: + - 'dev-stable' env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} @@ -15,7 +14,6 @@ jobs: RunProjectTests: name: Run Tests for Unity Project runs-on: ubuntu-latest - if: github.event.review.state == 'approved' strategy: fail-fast: false matrix: @@ -43,6 +41,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -59,7 +60,7 @@ jobs: projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} testMode: playmode - + BuildForTargetPlatforms: name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} needs: RunProjectTests @@ -102,6 +103,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -120,29 +124,34 @@ jobs: versioning: Semantic customParameters: '' + - name: Zip Build + run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) + - name: Upload Build Output uses: actions/upload-artifact@v2 with: - name: ${{ matrix.targetPlatform }} - path: build + name: build + path: ${{ matrix.targetPlatform }}.zip CreatePreRelease: name: Create Pre-Release needs: BuildForTargetPlatforms runs-on: ubuntu-latest + # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + steps: - - name: Get current date - id: date - run: echo "name=$(date +'%Y-%m-%d')" >> $GITHUB_ENV - - name: Download All Builds uses: actions/download-artifact@v2 - - name: Create Release + - name: Create Pre-Release uses: marvinpinto/action-automatic-releases@v1.1.0 with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: true - title: 'Development Build ${{ steps.date.outputs.date }}' - files: '*' + automatic_release_tag: 'latest-prerelease' + title: 'Latest Development Build' + files: | + build/*.zip diff --git a/.github/workflows/createrelease.yml b/.github/workflows/createrelease.yml index c377802..597b90f 100644 --- a/.github/workflows/createrelease.yml +++ b/.github/workflows/createrelease.yml @@ -5,7 +5,7 @@ name: Create Release on: push: tags: - - 'v*' + - 'v*' env: UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} @@ -41,6 +41,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -100,6 +103,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -118,21 +124,24 @@ jobs: versioning: Semantic customParameters: '' + - name: Zip Build + run: (cd build/${{ matrix.targetPlatform }} && sudo zip -r ../../${{ matrix.targetPlatform }}.zip .) + - name: Upload Build Output uses: actions/upload-artifact@v2 with: - name: ${{ matrix.targetPlatform }} - path: build + name: build + path: ${{ matrix.targetPlatform }}.zip CreateRelease: name: Create Release needs: BuildForTargetPlatforms runs-on: ubuntu-latest - + # REMOVE THIS WHEN AUTOMATIC RELEASES CHANGES TO USE ENVIRONMENT FILES + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + steps: - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - - name: Download All Builds uses: actions/download-artifact@v2 @@ -141,5 +150,6 @@ jobs: with: repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false - title: 'Release ${{ env.RELEASE_VERSION }}' - files: '*' + title: 'Latest Release' + files: | + build/*.zip diff --git a/.github/workflows/testandbuild.yml b/.github/workflows/testandbuild.yml index fa9302f..0a59949 100644 --- a/.github/workflows/testandbuild.yml +++ b/.github/workflows/testandbuild.yml @@ -44,6 +44,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -103,6 +106,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: diff --git a/.github/workflows/weeklybuild.yml b/.github/workflows/weeklybuild.yml index fd4f90d..613d857 100644 --- a/.github/workflows/weeklybuild.yml +++ b/.github/workflows/weeklybuild.yml @@ -43,6 +43,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: @@ -107,6 +110,9 @@ jobs: - name: Git LFS Pull run: git lfs pull + - name: Remove LFS File List + run: sudo rm .lfs-assets-id + - name: Restore Library Cache uses: actions/cache@v2 with: