mirror of
https://github.com/4sval/FModel.git
synced 2026-03-21 17:24:26 -05:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
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
|
|
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Edit QA Artifact
|
|
uses: irongut/EditRelease@v1.2.0
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
id: 127997284
|
|
files: ${{ github.sha }}.zip
|