Skip to content

Commit 40e30bb

Browse files
committed
Adiciona workflow GitHub Actions para build e publicação
Este commit implementa um novo workflow para automação. * Configuração do Workflow - Adiciona o workflow `smart-select-nuget` ao arquivo `smart-select.yml`. - Permite execução manual do workflow a partir da aba Actions. * Build e Empacotamento - Configura o ambiente .NET para a construção do projeto. - Compila e empacota `RoyalCode.SmartSelector` e `RoyalCode.SmartSelector.Generators`. * Publicação de Pacotes - Publica pacotes NuGet gerados no repositório NuGet. - Utiliza chave de API armazenada em segredos.
1 parent bbc37e5 commit 40e30bb

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/smart-select.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: smart-select-nuget
5+
6+
on:
7+
# Allows you to run this workflow manually from the Actions tab
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
# Steps represent a sequence of tasks that will be executed as part of the job
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup .NET
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: '9.0.x'
22+
23+
- name: Build and pack SmartSearch Abstractions
24+
run: dotnet build ./src/RoyalCode.SmartSelector/RoyalCode.SmartSelector.csproj -c Release -o ./publish/RoyalCode.SmartSelector
25+
26+
- name: Build and pack SmartSearch Persistence Abstractions
27+
run: dotnet build ./src/RoyalCode.SmartSelector.Generators/RoyalCode.SmartSelector.Generators.csproj -c Release -o ./publish/RoyalCode.SmartSelector.Generators
28+
29+
- name: Publish
30+
run: dotnet nuget push ./**/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)