Skip to content

Update workflow

Update workflow #10

Workflow file for this run

name: Build and Publish Executable
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0'
- name: Publish Windows Executable
run: dotnet publish ./src/PrintZPL.Host/PrintZPL.Host.csproj -r win-x64 -c Release /p:PublishSingleFile=true --self-contained true
- name: Publish Linux Executable
run: dotnet publish ./src/PrintZPL.Host/PrintZPL.Host.csproj -r linux-x64 -c Release /p:PublishSingleFile=true --self-contained true
- name: Publish macOS Executable
run: dotnet publish ./src/PrintZPL.Host/PrintZPL.Host.csproj -r osx-x64 -c Release /p:PublishSingleFile=true --self-contained true
- name: Upload Windows Executable
uses: actions/upload-artifact@v2
with:
name: PrintZPL-win-x64
path: src/PrintZPL.Host/bin/Release/net6.0/win-x64/publish/
- name: Upload Linux Executable
uses: actions/upload-artifact@v2
with:
name: PrintZPL-linux-x64
path: src/PrintZPL.Host/bin/Release/net6.0/linux-x64/publish/
- name: Upload macOS Executable
uses: actions/upload-artifact@v2
with:
name: PrintZPL-osx-x64
path: src/PrintZPL.Host/bin/Release/net6.0/osx-x64/publish/