Update GameLibs for Version #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update GameLibs for Version | |
on: | |
workflow_dispatch: | |
inputs: | |
game: | |
description: Name of game folder in `Games` directory | |
required: true | |
type: string | |
buildId: | |
description: Steam build ID | |
required: true | |
type: number | |
workflow_call: | |
inputs: | |
game: | |
required: true | |
type: string | |
buildId: | |
required: true | |
type: number | |
jobs: | |
update-version: | |
name: Update GameLibs package for ${{ inputs.game }} build ${{ inputs.buildId }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "8.0.x" | |
- name: setup NuGet CLI | |
uses: NuGet/setup-nuget@v1 | |
with: | |
nuget-version: '6.x' | |
- name: Setup SteamCMD | |
uses: Lordfirespeed/setup-steamcmd@v2 | |
- name: Authenticate SteamCMD | |
uses: Lordfirespeed/auth-steamcmd@v1 | |
with: | |
steam_config_vdf: ${{ secrets.steam_config_vdf }} | |
steam_username: ${{ secrets.steam_username }} | |
- name: Build | |
run: | | |
./build.sh --target PushNuGetPackages --game ${{ inputs.game }} --build ${{ inputs.buildId }} --steam-username ${{ secrets.steam_username }} --nuget-api-key ${{ secrets.nuget_api_key }} | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ inputs.game }}-build-${{ inputs.buildId }} | |
path: "Games/*/nupkgs/*.nupkg" | |