diff --git a/.github/workflows/activation.yml b/.github/workflows/activation.yml index 02836627..7299db23 100644 --- a/.github/workflows/activation.yml +++ b/.github/workflows/activation.yml @@ -2,7 +2,6 @@ name: Acquire activation file on: workflow_dispatch: - push: jobs: activation: @@ -11,10 +10,11 @@ jobs: steps: # Request manual activation file - name: Unity - Request Activation File - id: getManualLicenseFile + id: requestActivationFile uses: game-ci/unity-request-activation-file@v2.0-alpha-1 - name: Upload activation file uses: actions/upload-artifact@v2 with: - name: ${{ steps.getManualLicenseFile.outputs.filePath }} - path: ${{ steps.getManualLicenseFile.outputs.filePath }} + name: ${{ steps.requestActivationFile.outputs.filePath }} + path: ${{ steps.requestActivationFile.outputs.filePath }} + retention-days: 3 diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index f60c0434..d191a623 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -1,7 +1,7 @@ name: Delete old artifacts on: schedule: - - cron: '30 10 * * *' # every day at 10:30 + - cron: '30 10 * * SUN' # every sunday at 10:30 jobs: delete-artifacts: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 997e822f..415d5b91 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -77,10 +77,11 @@ jobs: unityVersion: ${{ matrix.unityVersion }} targetPlatform: ${{ matrix.targetPlatform }} customParameters: -profile SomeProfile -someBoolean -someValue exampleValue - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v2 with: name: Build (${{ matrix.unityVersion }}) path: build + retention-days: 14 k8sBuilds: name: K8s build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }} runs-on: ubuntu-latest @@ -120,9 +121,10 @@ jobs: kubeConfig: ${{ steps.read-base64.outputs.base64 }} volume: ${{ steps.k8s-unity-build.outputs.volume }} sourcePath: repo/build/ - - uses: actions/upload-artifact@v1 + - uses: actions/upload-artifact@v2 with: name: Kubernetes Build (${{ matrix.targetPlatform }}) path: k8s-volume-download + retention-days: 14 - run: ./action/bootstrapper/ReleaseLockAndAttemptShutdown.sh ${{ env.GKE_PROJECT }} ${{ env.GKE_CLUSTER }} ${{ env.GKE_ZONE }} if: ${{ always() }}