Create qa.yml

This commit is contained in:
Valentin 2023-11-04 18:47:02 +01:00 committed by GitHub
parent af10998e31
commit 3cab5e6a27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

44
.github/workflows/qa.yml vendored Normal file
View File

@ -0,0 +1,44 @@
name: FModel QA Builder
on:
push:
branches: [ dev ]
pull_request:
branches: [ dev ]
jobs:
build:
runs-on: windows-latest
steps:
- name: GIT Checkout
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Fetch Submodules Recursively
run: git submodule update --init --recursive
- name: .NET 6 Setup
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
- name: .NET Restore
run: dotnet restore FModel
- name: .NET Publish
run: dotnet publish FModel -c Release --no-self-contained -r win-x64 -f net6.0-windows -o "./FModel/bin/Publish/" -p:PublishReadyToRun=false -p:PublishSingleFile=true -p:DebugType=None -p:GenerateDocumentationFile=false -p:DebugSymbols=false
- name: ZIP File
uses: papeloto/action-zip@v1
with:
files: ./FModel/bin/Publish/FModel.exe
dest: ${{ github.sha }}.zip # will end up in working directory not the Publish folder
- name: Edit QA Artifact
uses: irongut/EditRelease@v1.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
id: qa
files: ${{ github.sha }}.zip