diff --git a/.github/workflows/main.yml b/.github/workflows/glade_build.yml similarity index 81% rename from .github/workflows/main.yml rename to .github/workflows/glade_build.yml index ed3a81e6..42a176db 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/glade_build.yml @@ -1,5 +1,7 @@ -name: Glade Build +name: Glade - Build + on: [pull_request] + jobs: buildForAllSupportedPlatforms: name: Build for ${{ matrix.targetPlatform }} @@ -26,3 +28,7 @@ jobs: with: targetPlatform: ${{ matrix.targetPlatform }} unityVersion: auto + - uses: actions/upload-artifact@v2 + with: + name: Glade-${{ matrix.targetPlatform }} + path: build/${{ matrix.targetPlatform }} \ No newline at end of file diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml deleted file mode 100644 index c81a30eb..00000000 --- a/.github/workflows/web-deploy.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: Glade Web Build & Deploy -on: - push: - branches: - - main -jobs: - build-deploy: - name: Web Deploy 🚀 - runs-on: self-hosted - strategy: - fail-fast: true - matrix: - targetPlatform: - - WebGL - - steps: - - name: Checkout Repository - uses: actions/checkout@v2 - with: - fetch-depth: 0 - lfs: true - - name: Prepare Cache - uses: actions/cache@v2 - with: - path: Library - key: Library-${{ matrix.targetPlatform }} - restore-keys: Library- - - name: Build - uses: game-ci/unity-builder@v2 - env: - UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }} - with: - targetPlatform: ${{ matrix.targetPlatform }} - unityVersion: auto - - name: Setup S3cmd to handle artifact upload - uses: s3-actions/s3cmd@v1.2.0 - with: - provider: linode - region: 'us-southeast-1' - access_key: ${{ secrets.S3_ACCESS_KEY }} - secret_key: ${{ secrets.S3_SECRET_KEY }} - - name: Upload build artifcats using S3cmd - run: | - s3cmd --no-mime-magic --acl-public --delete-removed --delete-after sync build/WebGL/WebGL/ s3://glade.tlagrange.com - s3cmd modify --add-header="Content-Encoding: gzip" 's3://glade.tlagrange.com/Build/*.gz' - s3cmd ws-info s3://glade.tlagrange.com - exit 0