update with gitea release action
Some checks failed
Build project / Build for ${{ matrix.targetPlatform }} (StandaloneLinux64, 6000.0.37f1) (push) Failing after 28m4s
Build project / Build for ${{ matrix.targetPlatform }} (StandaloneWindows64, 6000.0.37f1) (push) Failing after 21m44s

This commit is contained in:
EthanPisani 2025-02-19 14:14:44 -05:00
parent c1fbe13d1c
commit 117a0b9482

View File

@ -1,11 +1,18 @@
name: Build project
on: [push, pull_request]
on:
push:
branches:
- '**' # Run on pushes to any branch
tags-ignore:
- '**' # Ignore pushes to tags
pull_request:
branches:
- '**' # Run on pull requests to any branch
jobs:
buildForAllSupportedPlatforms:
name: Build for ${{ matrix.targetPlatform }}
# runs-on: ubuntu-22.04-large
runs-on: ubuntu-latest
strategy:
fail-fast: false
@ -29,24 +36,6 @@ jobs:
restore-keys: |
Library-
# - uses: https://github.com/game-ci/unity-test-runner@v4
# id: testRunner
# env:
# UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
# UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
# UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
# with:
# unityVersion: ${{ matrix.unityVersion }}
# githubToken: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/upload-artifact@v3
# if: always()
# with:
# name: Test results (all modes)
# path: ${{ steps.testRunner.outputs.artifactsPath }}
# - if: matrix.targetPlatform == 'Android'
# uses: jlumbroso/free-disk-space@v1.2.0
- uses: https://github.com/game-ci/unity-builder@v4
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
@ -57,7 +46,6 @@ jobs:
runAsHostUser: true
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
# customParameters: '-myParameter myValue -myBoolean -ThirdParameter andItsValue'
- name: Zip build artifacts
run: |
@ -74,23 +62,18 @@ jobs:
run: |
ls -R /tmp/zipped_builds
- name: Create Release
id: create_release
uses: actions/create-release@v1
- name: Create Gitea Release and Upload Assets
uses: akkuman/gitea-release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
NODE_OPTIONS: '--experimental-fetch' # Required for Node.js < 18
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} # Gitea token for authentication
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PACKAGE_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip
asset_name: build_${{ matrix.targetPlatform }}.zip
asset_content_type: application/zip
server_url: ${{ github.server_url }} # Gitea server URL (defaults to GitHub's server URL)
tag_name: ${{ github.sha }} # Use the commit SHA as the tag name
name: Release ${{ github.sha }} # Release name
draft: false # Do not create a draft release
prerelease: false # Do not mark as a prerelease
files: |
/tmp/zipped_builds/build_${{ matrix.targetPlatform }}.zip
md5sum: true # Generate and upload MD5 checksums
sha256sum: true # Generate and upload SHA-256 checksums