36 lines
790 B
YAML
36 lines
790 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v3
|
|
with:
|
|
dotnet-version: 8.0.x
|
|
|
|
- name: Build
|
|
run: dotnet build --configuration Release
|
|
|
|
- name: Test
|
|
run: dotnet test --configuration Release --no-build
|
|
|
|
- name: Get current timestamp
|
|
id: timestamp
|
|
run: echo "datetime=$(date +'%Y%m%d-%H%M%S')" >> $GITHUB_ENV
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: CSSUDII.Sodium_${{ env.datetime }}
|
|
path: ${{ github.workspace }}/**/*.dll
|