make testing tags testing_ instead of t.

This commit is contained in:
Ottermandias 2023-06-12 15:30:11 +02:00
parent 712dcf5782
commit 37798d93ba
2 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@ name: Create Release
on: on:
push: push:
tags-ignore: tags-ignore:
- t* - testing_*
jobs: jobs:
build: build:

View file

@ -3,7 +3,7 @@ name: Create Test Release
on: on:
push: push:
tags: tags:
- t* - testing_*
jobs: jobs:
build: build:
@ -24,11 +24,11 @@ jobs:
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev" Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Build - name: Build
run: | run: |
$ver = '${{ github.ref_name }}' -replace 't' $ver = '${{ github.ref_name }}' -replace 'testing_'
invoke-expression 'dotnet build --no-restore --configuration Debug --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver' invoke-expression 'dotnet build --no-restore --configuration Debug --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
- name: write version into json - name: write version into json
run: | run: |
$ver = '${{ github.ref_name }}' -replace 't' $ver = '${{ github.ref_name }}' -replace 'testing_'
$path = './Penumbra/bin/Debug/Penumbra.json' $path = './Penumbra/bin/Debug/Penumbra.json'
$json = Get-Content -Raw $path | ConvertFrom-Json $json = Get-Content -Raw $path | ConvertFrom-Json
$json.AssemblyVersion = $ver $json.AssemblyVersion = $ver
@ -65,7 +65,7 @@ jobs:
- name: Write out repo.json - name: Write out repo.json
run: | run: |
$verT = '${{ github.ref_name }}' $verT = '${{ github.ref_name }}'
$ver = $verT -replace 't' $ver = $verT -replace 'testing_'
$path = './repo.json' $path = './repo.json'
$json = Get-Content -Raw $path | ConvertFrom-Json $json = Get-Content -Raw $path | ConvertFrom-Json
$json[0].TestingAssemblyVersion = $ver $json[0].TestingAssemblyVersion = $ver