mirror of
https://github.com/XFox111/SimpleOTP.git
synced 2026-04-22 08:00:45 +03:00
989ed46f3b
* Updated target to net9.0 * Merged net8.0 and net9.0 targets * Updated workflows
55 lines
1.3 KiB
YAML
55 lines
1.3 KiB
YAML
name: "Build workflow"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "next" ]
|
|
paths-ignore:
|
|
- "**.md"
|
|
- "LICENSE"
|
|
- "PRIVACY"
|
|
- ".github/*"
|
|
- ".vscode/*"
|
|
- ".devcontainer/*"
|
|
- "!.github/workflows/pr-workflow.yml"
|
|
pull_request:
|
|
branches: [ "main", "next" ]
|
|
paths-ignore:
|
|
- "**.md"
|
|
- "LICENSE"
|
|
- "PRIVACY"
|
|
- ".github/*"
|
|
- ".vscode/*"
|
|
- ".devcontainer/*"
|
|
- "!.github/workflows/pr-workflow.yml"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: 9.0.x
|
|
|
|
- run: dotnet restore
|
|
- run: dotnet build --no-restore
|
|
- run: dotnet test --no-restore --verbosity normal
|
|
|
|
- run: dotnet pack --no-restore --configuration Debug
|
|
|
|
- name: Drop SimpleOTP
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: SimpleOTP
|
|
path: libraries/SimpleOTP/bin/Debug/EugeneFox.SimpleOTP*.*nupkg
|
|
|
|
- name: Drop SimpleOTP.DependencyInjection
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: SimpleOTP.DependencyInjection
|
|
path: libraries/SimpleOTP.DependencyInjection/bin/Debug/EugeneFox.SimpleOTP.DependencyInjection*.*nupkg
|