mirror of
https://github.com/unclshura/splitter.git
synced 2026-06-21 16:12:01 +00:00
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Build and Publish
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 10.0.x
|
|
|
|
- name: Restore
|
|
run: dotnet restore -r win-x64
|
|
|
|
- name: 'Get Version'
|
|
id: version
|
|
uses: battila7/get-version-action@v2
|
|
|
|
- name: Build Release
|
|
run: dotnet build -c Release --no-restore /p:Version=${{ steps.version.outputs.version-without-v }} /p:BuildNumber=${{ github.run_number }} /p:SourceRevisionId=${{ github.sha }}
|
|
|
|
- name: Publish Release
|
|
run: dotnet publish -c Release -r win-x64 --self-contained true --no-build /p:Version=${{ steps.version.outputs.version-without-v }} /p:BuildNumber=${{ github.run_number }} /p:SourceRevisionId=${{ github.sha }}
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: splitter-win-x64-${{ steps.version.outputs.version-without-v }}
|
|
path: splitter-cli/bin/Release/net10.0/win-x64/publish/**
|
|
|