mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Artifact Generator
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
appVersion:
|
|
description: 'FModel Version And Release Tag'
|
|
required: true
|
|
default: '4.0.X.X'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- name: GIT Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: 'true'
|
|
|
|
- name: .NET 5 Setup
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 5.0.x
|
|
|
|
- name: .NET Restore
|
|
run: dotnet restore FModel
|
|
|
|
- name: .NET Publish
|
|
run: dotnet publish FModel -c Release -f net5.0-windows -o "./FModel/bin/Publish/" -p:PublishReadyToRun=true -p:PublishSingleFile=true -p:DebugType=None -p:GenerateDocumentationFile=false -p:DebugSymbols=false -p:AssemblyVersion=${{ github.event.inputs.appVersion }} -p:FileVersion=${{ github.event.inputs.appVersion }} --no-self-contained -r win-x64
|
|
|
|
- name: ZIP File
|
|
uses: papeloto/action-zip@v1
|
|
with:
|
|
files: D:\a\FModel\FModel\FModel\bin\Publish\
|
|
dest: FModel.zip
|
|
|
|
- name: GIT Release
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
artifacts: D:\a\FModel\FModel\FModel\bin\Publish\FModel.zip
|
|
artifactErrorsFailBuild: true
|
|
name: "FModel v${{ github.event.inputs.appVersion }}"
|
|
tag: ${{ github.event.inputs.appVersion }}
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|