Skip to content

Commit

Permalink
Update workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZWR committed Feb 13, 2025
1 parent 3320c59 commit b408a53
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 38 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

on:
push:
tags-ignore:
- testing_*
tags:
- cn_*

jobs:
build:
Expand All @@ -24,11 +24,11 @@ jobs:
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Build
run: |
$ver = '${{ github.ref_name }}'
$ver = '${{ github.ref_name }}' -replace 'cn_'
invoke-expression 'dotnet build --no-restore --configuration Release --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
- name: write version into jsons
run: |
$ver = '${{ github.ref_name }}'
$ver = '${{ github.ref_name }}' -replace 'cn_'
$path = './Glamourer/bin/Release/Glamourer.json'
$json = Get-Content -Raw $path | ConvertFrom-Json
$json.AssemblyVersion = $ver
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:

- name: Write out repo.json
run: |
$ver = '${{ github.ref_name }}'
$ver = '${{ github.ref_name }}' -replace 'cn_'
$path = './repo.json'
$json = Get-Content -Raw $path | ConvertFrom-Json
$json[0].AssemblyVersion = $ver
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Test Release
on:
push:
tags:
- testing_*
- cn_testing_*

jobs:
build:
Expand All @@ -24,11 +24,11 @@ jobs:
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\dev"
- name: Build
run: |
$ver = '${{ github.ref_name }}' -replace 'testing_'
$ver = '${{ github.ref_name }}' -replace 'cn_testing_'
invoke-expression 'dotnet build --no-restore --configuration Debug --nologo -p:Version=$ver -p:FileVersion=$ver -p:AssemblyVersion=$ver'
- name: write version into json
run: |
$ver = '${{ github.ref_name }}' -replace 'testing_'
$ver = '${{ github.ref_name }}' -replace 'cn_testing_'
$path = './Glamourer/bin/Debug/Glamourer.json'
$json = Get-Content -Raw $path | ConvertFrom-Json
$json.AssemblyVersion = $ver
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Write out repo.json
run: |
$verT = '${{ github.ref_name }}'
$ver = $verT -replace 'testing_'
$ver = $verT -replace 'cn_testing_'
$path = './repo.json'
$json = Get-Content -Raw $path | ConvertFrom-Json
$json[0].TestingAssemblyVersion = $ver
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/trigger-update-dalamudplugins.yml

This file was deleted.

0 comments on commit b408a53

Please sign in to comment.