mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Update release.yml
Fuck, this writes the functions itself.
This commit is contained in:
parent
03843fa9af
commit
648bdafbfc
1 changed files with 5 additions and 5 deletions
10
.github/workflows/release.yml
vendored
10
.github/workflows/release.yml
vendored
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Download Dalamud
|
- name: Download Dalamud
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/latest.zip -OutFile latest.zip
|
Invoke-WebRequest -Uri https://goatcorp.github.io/dalamud-distrib/stg/latest.zip -OutFile latest.zip
|
||||||
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: |
|
||||||
|
|
@ -27,17 +27,17 @@ jobs:
|
||||||
- name: write version into json
|
- name: write version into json
|
||||||
run: |
|
run: |
|
||||||
$ver = '${{ github.ref }}' -replace 'refs/tags/',''
|
$ver = '${{ github.ref }}' -replace 'refs/tags/',''
|
||||||
$path = './Penumbra/bin/Release/net472/Penumbra.json'
|
$path = './Penumbra/bin/Release/net5.0-windows/Penumbra.json'
|
||||||
$content = get-content -path $path
|
$content = get-content -path $path
|
||||||
$content = $content -replace '1.0.0.0',$ver
|
$content = $content -replace '1.0.0.0',$ver
|
||||||
set-content -Path $path -Value $content
|
set-content -Path $path -Value $content
|
||||||
- name: Archive
|
- name: Archive
|
||||||
run: Compress-Archive -Path Penumbra/bin/Release/net472/* -DestinationPath Penumbra.zip
|
run: Compress-Archive -Path Penumbra/bin/Release/net5.0-windows/* -DestinationPath Penumbra.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:
|
||||||
path: |
|
path: |
|
||||||
./Penumbra/bin/Release/net472/*
|
./Penumbra/bin/Release/net5.0-windows/*
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
|
@ -57,4 +57,4 @@ jobs:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
|
||||||
asset_path: ./Penumbra.zip
|
asset_path: ./Penumbra.zip
|
||||||
asset_name: Penumbra.zip
|
asset_name: Penumbra.zip
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue