mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
i'm dumb
This commit is contained in:
parent
2388246805
commit
fca9856c85
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
|
|
@ -2,6 +2,11 @@ name: Artifact Generator
|
|||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
appVersion:
|
||||
description: 'FModel Version And Release Tag'
|
||||
required: true
|
||||
default: '4.0.X.X'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -22,10 +27,19 @@ jobs:
|
|||
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 --no-self-contained -r win-x64
|
||||
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: EXE Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: ZIP File
|
||||
uses: papeloto/action-zip@v1
|
||||
with:
|
||||
name: FModel
|
||||
path: D:\a\FModel\FModel\FModel\bin\Publish\
|
||||
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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user