Add version scripts

This commit is contained in:
2022-12-19 19:03:06 +01:00
parent 5ae66d2388
commit 12e65f2f4e
3 changed files with 4 additions and 0 deletions

View File

@@ -12,16 +12,20 @@ jobs:
runner: windows-latest runner: windows-latest
name: windows name: windows
outputname: Alma.exe outputname: Alma.exe
version_script: .scripts/versioning.ps1
- runtime: linux-x64 - runtime: linux-x64
runner: ubuntu-latest runner: ubuntu-latest
name: linux name: linux
outputname: Alma outputname: Alma
version_script: .scripts/versioning.sh
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Setup dotnet - name: Setup dotnet
uses: actions/setup-dotnet@v3 uses: actions/setup-dotnet@v3
with: with:
dotnet-version: '7.0.x' dotnet-version: '7.0.x'
- name: Patch version
run: ${{ matrix.target.version_script }}
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore src/Alma run: dotnet restore src/Alma
- name: Build - name: Build

0
.scripts/versioning.ps1 Normal file
View File

0
.scripts/versioning.sh Executable file
View File