mirror of
https://github.com/XFox111/SimpleOTP.git
synced 2026-04-22 08:00:45 +03:00
80e18fd20a
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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@v5
|
|
|
|
- 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
|