Skip to content

build: adjust workflow #16

build: adjust workflow

build: adjust workflow #16

Workflow file for this run

name: Build Artifacts
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [linux-x64,osx-x64,osx-arm64,win-x64]
dotnet-version: ['8.0']
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET Core ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v2
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Restore dependencies
run: dotnet restore
- name: Build application
run: dotnet build --configuration Release
- name: Publish application
run: dotnet publish --configuration Release --output ./jihub-${{ matrix.os }} --runtime ${{ matrix.os }} --no-self-contained
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: jihub-${{ matrix.os }}
path: ./jihub-${{ matrix.os }}