Skip to content

Commit

Permalink
🚑 fix inconsistent parameter (#8)
Browse files Browse the repository at this point in the history
* 🩹 rename parameter for consistency

Replaced the `project-path` paramter with `csproj-path` to be consistent
with the `build-and-sign-monogame-android` project.

* 📝 update README

Remove `project-path` parameter and add missing `build-target`
parameter.
  • Loading branch information
igotinfected authored Jan 11, 2022
1 parent 93f3c6b commit 2144797
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ jobs:
solution-path: '${{ github.workspace }}\Project\Project.sln'
content-mgcb-path: '${{ github.workspace }}\Project\Android\Content'
content-mgcb-platform: "Android"
project-path: '${{ github.workspace }}\Project\Android'
csproj-path: '${{ github.workspace }}\Project\Android\Android.csproj'
build-target: "PackageForAndroid"
csproj-path: '${{ github.workspace }}\Project\Android.csproj'
build-target: "Android"
build-configuration: "Release"
```
# License
Expand Down
8 changes: 5 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ inputs:
content-mgcb-platform:
description: "Platform to build Content files for. E.g.: `Android`."
required: true
project-path:
description: "Path to the `.csproj` to build with. This is passed to `msbuild` to initiate the build."
csproj-path:
description: >
Path to the `.csproj` to build with.
This is passed to `msbuild` to initiate the build.
required: true
build-target:
description: "The `msbuild` target to use. E.g.: `PackageForAndroid`."
Expand Down Expand Up @@ -61,7 +63,7 @@ runs:

- name: Build project
run: |
msbuild "${{ inputs.project-path }}" `
msbuild "${{ inputs.csproj-path }}" `
-t:${{ inputs.build-target }} `
-p:Configuration=${{ inputs.build-configuration }}
shell: pwsh
Expand Down

0 comments on commit 2144797

Please sign in to comment.