Skip to content

start unified build

start unified build #1

Workflow file for this run

name: build
env:
VERSION: 2.0.2
ASM_VERSION: 2.0.0
VERSION_SUFFIX: '-pre.4'
# VERSION_SUFFIX: ''
on:
push:
branches:
- master
paths-ignore:
- docs/*
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: run tests
run: dotnet test src/Stowage.sln -c release --filter Category!=Integration
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check-out source code
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
8.0.x
- name: Build
run: dotnet build src/Stowage.sln --configuration Release /p:Version=${{ env.VERSION }}${{ env.VERSION_SUFFIX }} /p:FileVersion=${{ env.VERSION }} /p:AssemblyVersion=${{ env.ASM_VERSION }}
- name: collect artifacts
run: |
mkdir -p artifacts
cp src/Stowage/bin/Release/*.nupkg artifacts/
echo "${{ env.VERSION }}" >> artifacts/version.txt
cp docs/release-history.md artifacts/
grep -m 2 -B 1000 '^## ' artifacts/release-history.md | tail -n +3 | head -n -2 > artifacts/release-notes.md
cat artifacts/release-notes.md
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: bin
path: artifacts/*