Skip to content

fix: int dict to localedictionary #187

fix: int dict to localedictionary

fix: int dict to localedictionary #187

Workflow file for this run

name: Pull Requests
on:
pull_request:
branches: [ "main" ]
env:
VERSION_PREFIX: 0.7.2
VERSION_SUFFIX: -pr${{ github.event.number }}
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Cache NuGet dependencies
uses: actions/[email protected]
id: cache-nuget-pr
with:
key: ${{ runner.os }}-nuget-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}-${{ hashFiles('Intersect*/*.csproj') }}
path: |
~/.nuget/packages
Intersect*/obj/
- name: Add msbuild to PATH
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: Setup NuGet.exe for use with actions
if: steps.cache-nuget-pr.outputs.cache-hit != 'true'
# You may pin to the exact commit or the version.
# uses: NuGet/setup-nuget@fd9fffd6ca4541cf4152a9565835ca1a88a6eb37
uses: NuGet/[email protected]
with:
# NuGet version to install. Can be `latest`, `preview`, a concrete version like `5.3.1`, or a semver range specifier like `5.x`.
nuget-version: latest # optional, default is latest
# NuGet API Key to configure.
# nuget-api-key: # optional
# Source to scope the NuGet API Key to.
# nuget-api-key-source: # optional
- name: Restore NuGet Packages
if: steps.cache-nuget-pr.outputs.cache-hit != 'true'
run: nuget restore Intersect.sln
- name: Build solution (Debug)
run: msbuild Intersect.sln /p:Configuration=Debug /p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} /p:Version=0.7.2.${{ github.run_number }}
- name: Build solution (Release)
run: msbuild Intersect.sln /p:Configuration=Release /p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} /p:Version=0.7.2.${{ github.run_number }}
- name: Package artifacts
uses: AscensionGameDev/actions@4c9073d0721da476ac9337fbbfe46a9ca1ae4389
with:
bundle: .github/bundles/patch.json
version: ${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }}
- name: Extract archive to avoid zips inside of zips
run: 7z x dist/*.zip
- name: Delete inner zip
run: del dist/*.zip
- name: Upload artifacts for workflow debugging
uses: actions/upload-artifact@v3
with:
name: intersect-${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }}
path: "dist/patch/*"