From e52054695d45e5dbe81543685ec0dd7ab8431dc7 Mon Sep 17 00:00:00 2001 From: iAmAsval Date: Thu, 3 Jun 2021 18:34:40 +0200 Subject: [PATCH 1/2] test --- .github/workflows/main.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b177e934..34909e78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,12 @@ -name: Artifact Generator +name: FModel Builder 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: ./FModel/bin/Publish/FModel.exe + dest: FModel.zip + + - name: GIT Release + uses: marvinpinto/action-automatic-releases@latest + with: + title: "FModel v${{ github.event.inputs.appVersion }}" + automatic_release_tag: ${{ github.event.inputs.appVersion }} + repo_token: ${{ secrets.GITHUB_TOKEN }} + prerelease: false + files: ./FModel/bin/Publish/FModel.zip From 836d80f77997bcc06750af5defdfd499519c778f Mon Sep 17 00:00:00 2001 From: iAmAsval Date: Thu, 3 Jun 2021 18:38:37 +0200 Subject: [PATCH 2/2] i give up now --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34909e78..b4440d2f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,4 +42,5 @@ jobs: automatic_release_tag: ${{ github.event.inputs.appVersion }} repo_token: ${{ secrets.GITHUB_TOKEN }} prerelease: false - files: ./FModel/bin/Publish/FModel.zip + files: | + */FModel/bin/Publish/FModel.zip