Skip to content

Release

Release #3

Workflow file for this run

name: Release
env:
TARGET_FILE: ./Assets/EasyADV/Scripts/package.json
FILE_NAME: "EasyADV"
BUILD_METHOD: "PackageExporter.Export"
on:
push:
tags:
- '*'
workflow_dispatch: {}
jobs:
release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- .
unityVersion:
- 2022.2.5f1
targetPlatform:
- WebGL
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v3.4.0
- name: Cache
uses: actions/cache@v3.3.1
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- name: Build package
id: build
uses: game-ci/unity-builder@v2
env:
UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
with:
buildName: ${{ env.FILE_NAME }}.unitypackage
buildMethod: ${{ env.BUILD_METHOD }}
unityVersion: ${{ matrix.unityVersion }}
targetPlatform: ${{ matrix.targetPlatform }}
buildPath: src/Unity
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
name: ${{ github.event.pull_request.body }}
tag_name: ${{ github.event.pull_request.title }}
prerelease: false
files: |
build/${{ env.FILE_NAME }}.unitypackage