Skip to content

Commit

Permalink
fix: unique name identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Jan 20, 2025
1 parent dd786ba commit 94ffd13
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: project builder
on:
workflow_dispatch:
inputs:
name:
type: string
description: name/identifier of the game
required: true
default: neebo

repository:
type: string
description: path to github project, in format <owner>/<repo>
Expand Down Expand Up @@ -80,8 +86,8 @@ jobs:
uses: actions/cache@v3
with:
path: Library
key: Library-${{ matrix.targetPlatform }}
restore-keys: Library-${{ matrix.targetPlatform }}
key: Library-${{ github.event.inputs.name }}-${{ matrix.targetPlatform }}
restore-keys: Library-${{ github.event.inputs.name }}-${{ matrix.targetPlatform }}

- name: build project for ${{ matrix.targetPlatform }}
uses: game-ci/unity-builder@v4
Expand All @@ -100,7 +106,7 @@ jobs:
path: build/${{ matrix.targetPlatform }}

- name: archive ${{ matrix.targetPlatform }} release
run: cd build/${{ matrix.targetPlatform }} && zip -r ../../neebo-${{ matrix.targetPlatform }}.zip .
run: cd build/${{ matrix.targetPlatform }} && zip -r ../../${{ github.event.inputs.name }}-${{ matrix.targetPlatform }}.zip .

- name: publish ${{ matrix.targetPlatform }} pre-release
uses: softprops/action-gh-release@v1
Expand All @@ -109,7 +115,7 @@ jobs:
prerelease: true
name: ${{ github.event.inputs.repository }}-${{ matrix.targetPlatform }}
tag_name: ${{ github.event.inputs.repository }}-${{ matrix.targetPlatform }}
files: neebo-${{ matrix.targetPlatform }}.zip
files: ${{ github.event.inputs.name }}-${{ matrix.targetPlatform }}.zip
fail_on_unmatched_files: true

- name: write matrix outputs
Expand Down

0 comments on commit 94ffd13

Please sign in to comment.