New translations sta_strings.xml (Spanish) #215
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: Publish Module | |
on: | |
push: | |
paths: | |
- '.github/workflows/publish.yml' | |
- 'build/**' | |
- 'src/Bannerlord.Harmony/**' | |
repository_dispatch: | |
types: publish | |
workflow_dispatch: | |
env: | |
# Disable the .NET logo in the console output. | |
DOTNET_NOLOGO: true | |
# Disable the .NET first time experience to skip caching NuGet packages and speed up the build. | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
# Disable sending .NET CLI telemetry to Microsoft. | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
jobs: | |
build-module: | |
name: Build Module | |
runs-on: ubuntu-latest | |
outputs: | |
mod_version: ${{ steps.version.outputs.mod_version }} | |
steps: | |
- name: Setup | |
uses: butr/actions-common-setup@v2 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
- name: Build Bannerlord.Harmony | |
run: >- | |
mkdir bannerlord; | |
dotnet build src/Bannerlord.Harmony/Bannerlord.Harmony.csproj --configuration Release -p:GameFolder="$PWD/bannerlord"; | |
shell: pwsh | |
- name: Set Bannerlord.Harmony version | |
id: version | |
run: >- | |
$vers =(Get-Item './bannerlord/Modules/Bannerlord.Harmony/bin/Win64_Shipping_Client/Bannerlord.Harmony.dll').VersionInfo.ProductVersion.Split("+")[0]; | |
echo "::set-output name=mod_version::$vers" | |
shell: pwsh | |
- name: Upload Bannerlord folder | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bannerlord | |
path: ./bannerlord/ | |
########################### | |
# NEXUSMODS # | |
########################### | |
publish-on-nexusmods: | |
if: github.ref == 'refs/heads/master' | |
needs: ["build-module"] | |
uses: BUTR/workflows/.github/workflows/release-nexusmods.yml@master | |
with: | |
nexusmods_game_id: mountandblade2bannerlord | |
nexusmods_mod_id: 2006 | |
mod_filename: Harmony | |
mod_version: ${{ needs.build-module.outputs.mod_version }} | |
mod_description: | | |
Works with every version past v1.0.0 (Steam/GOG/Epic) and past v1.2.7 (Xbox). | |
* Added more info for Debug UI. Available via CTRL+ALT+H | |
Unpacking .7z files - https://www.nexusmods.com/mountandblade2bannerlord/articles/423 | |
artifact_name: bannerlord | |
secrets: | |
NEXUSMODS_APIKEY: ${{ secrets.ARAGAS_NEXUSMODS_API_KEY }} | |
NEXUSMODS_SESSION_COOKIE: ${{ secrets.ARAGAS_NEXUSMODS_SESSION_COOKIE }} | |
########################### | |
# STEAM # | |
########################### | |
publish-on-steam: | |
if: github.ref == 'refs/heads/master' | |
needs: ["build-module"] | |
uses: BUTR/workflows/.github/workflows/release-steam.yml@master | |
with: | |
workshop_id: 2859188632 | |
mod_id: Bannerlord.Harmony | |
mod_description: Release v${{ needs.build-module.outputs.mod_version }} | |
artifact_name: bannerlord | |
secrets: | |
STEAM_LOGIN: ${{ secrets.STEAM_WORKSHOP_LOGIN }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_WORKSHOP_PASSWORD }} | |
STEAM_AUTH_CODE: ${{ secrets.STEAM_WORKSHOP_AUTH_CODE }} | |
########################### | |
# GITHUB # | |
########################### | |
publish-on-github: | |
if: github.ref == 'refs/heads/master' | |
needs: ["build-module"] | |
uses: BUTR/workflows/.github/workflows/release-github.yml@master | |
with: | |
mod_id: Bannerlord.Harmony | |
mod_version: ${{ needs.build-module.outputs.mod_version }} | |
mod_description: Release v${{ needs.build-module.outputs.mod_version }} | |
artifact_name: bannerlord |