mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
less fucked powershell, unfuck tag names
This commit is contained in:
parent
0acc634ec8
commit
a30578cb32
1 changed files with 6 additions and 3 deletions
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -22,12 +22,15 @@ jobs:
|
||||||
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\"
|
Expand-Archive -Force latest.zip "$env:AppData\XIVLauncher\addon\Hooks\"
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
dotnet build --no-restore --configuration Release --nologo
|
dotnet build --no-restore --configuration Release --nologo -p:Version=${{ github.ref }} -p:FileVersion=${{ github.ref }}
|
||||||
- name: write version into json
|
- name: write version into json
|
||||||
run: |
|
run: |
|
||||||
((get-content -Path ./Penumbra/bin/Release/net472/Penumbra.json -raw) -replace '1.0.0.0', '${{ github.ref }}') | set-content -path ./Penumbra/bin/Release/net472/Penumbra.json
|
$path = './Penumbra/bin/Release/net472/Penumbra.json'
|
||||||
|
$content = get-content -path $path
|
||||||
|
$content = $content -replace '1.0.0.0',('${{ github.ref }}' -replace 'refs/tags/','')
|
||||||
|
set-content -Path $path -Value $content
|
||||||
- name: Archive
|
- name: Archive
|
||||||
run: Compress-Archive -Path Penumbra/bin/Release/net472/* -DestinationPath Penumbra.${{ github.ref }}.zip -p:Version=${{ github.ref }} -p:FileVersion=${{ github.ref }}
|
run: Compress-Archive -Path Penumbra/bin/Release/net472/* -DestinationPath Penumbra.${{ github.ref }}.zip
|
||||||
- name: Upload a Build Artifact
|
- name: Upload a Build Artifact
|
||||||
uses: actions/upload-artifact@v2.2.1
|
uses: actions/upload-artifact@v2.2.1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue