Skip to content
This repository has been archived by the owner on Feb 9, 2025. It is now read-only.

Build and Release

Build and Release #6

Workflow file for this run

name: Build and Release
on:
workflow_dispatch:
env:
BUILD_COMMAND: dotnet publish -r $ARCH -p:Publish=true -o output
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build for Windows x64
env:
ARCH: win-x64
run: ${{ env.BUILD_COMMAND }}
- name: Build for Linux x64
env:
ARCH: linux-x64
run: ${{ env.BUILD_COMMAND }}
- name: Release to Github
uses: softprops/action-gh-release@v2
with:
draft: true
files: |
output/*