mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-22 00:22:01 +00:00
Build actions fixed. Publishing zip.
This commit is contained in:
parent
ac58534438
commit
9b155473d8
18
.github/workflows/publish.yml
vendored
18
.github/workflows/publish.yml
vendored
@ -2,9 +2,9 @@ name: Build and Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: [ "master" ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: [ "master" ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -34,8 +34,20 @@ jobs:
|
|||||||
GITHUB_SHA: ${{ github.sha }}
|
GITHUB_SHA: ${{ github.sha }}
|
||||||
run: dotnet publish -c Release -r win-x64 --self-contained true --no-build
|
run: dotnet publish -c Release -r win-x64 --self-contained true --no-build
|
||||||
|
|
||||||
|
- name: Create ZIP
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$publish = "bin/Release/net10.0/win-x64/publish"
|
||||||
|
$version = (Select-String -Path "$publish\*.deps.json" -Pattern '"version":').Line.Split('"')[3]
|
||||||
|
$zip = "splitter-win-x64-$version-${{ github.run_number }}.zip"
|
||||||
|
|
||||||
|
if (Test-Path $zip) { Remove-Item $zip }
|
||||||
|
Compress-Archive -Path "$publish/*" -DestinationPath $zip
|
||||||
|
|
||||||
|
Write-Host "Created $zip"
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: splitter-win-x64
|
name: splitter-win-x64
|
||||||
path: bin/Release/net10.0/win-x64/publish/
|
path: splitter-win-x64-*.zip
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user