Skip to content

Commit

Permalink
Check out specific tag of BeatSaberBindings
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoco007 committed Mar 10, 2021
1 parent 77df4c7 commit dde6e30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,17 @@ jobs:
with:
dotnet-version: 3.1.x

- name: Set manifest version
run: ./bsipa_version_hash.ps1 "Source\CustomAvatar\manifest.json" "Source\CustomAvatar\Properties\AssemblyInfo.cs"

- name: Fetch Beat Saber Bindings
uses: actions/checkout@v2
with:
repository: nicoco007/BeatSaberBindings
ref: v${{ env.GAME_VERSION }}
token: ${{ secrets.PRIVATE_GITHUB_TOKEN }}
path: BeatSaberBindings\Beat Saber_Data\Managed

- name: Set manifest version
run: ./bsipa_version_hash.ps1 "Source\CustomAvatar\manifest.json" "Source\CustomAvatar\Properties\AssemblyInfo.cs"

- name: Build Debug
run: dotnet build Source\CustomAvatar\CustomAvatar.csproj -c Debug -p:BeatSaberDir=..\..\BeatSaberBindings

Expand Down
1 change: 1 addition & 0 deletions bsipa_version_hash.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ if ($git_tag -ne "" -and $git_tag.Length -gt 0) {
}

Add-Content "$env:GITHUB_ENV" "ZIP_VERSION=$zip_version"
Add-Content "$env:GITHUB_ENV" "GAME_VERSION=$($manifest_content.gameVersion)"

$manifest_content | ConvertTo-Json -Compress | Set-Content $args[0]

0 comments on commit dde6e30

Please sign in to comment.