Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Merge pull request #11 from Any-Bar/dependabot/github_actions/actions… #23

Merge pull request #11 from Any-Bar/dependabot/github_actions/actions…

Merge pull request #11 from Any-Bar/dependabot/github_actions/actions… #23

Workflow file for this run

name: build
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- '*.md'
pull_request:
paths-ignore:
- '*.md'
jobs:
build:
permissions:
contents: write
pull-requests: write
runs-on: windows-latest
env:
Solution_Path: AnyBar.Localization.slnx
Project_Path: AnyBar.Localization\AnyBar.Localization.csproj
steps:
# Checkout codes
- name: Checkout
uses: actions/checkout@v6
# Install the .NET Core workload
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
9.0.x
# Restore dependencies
- name: Restore dependencies
run: dotnet restore ${{ env.Solution_Path }}
# Build the project
- name: Build
run: dotnet build ${{ env.Solution_Path }} --configuration Release --no-restore
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test ${{ env.Solution_Path }} --configuration Release --no-build
# Pack the NuGet package
- name: Create NuGet package
run: dotnet pack ${{ env.Project_Path }} --configuration Release --no-build --output nupkgs
# Upload the NuGet package
- name: Upload NuGet package
uses: actions/upload-artifact@v7
with:
name: AnyBar.Localization
retention-days: 7
path: AnyBar.Localization/bin/Release