File tree Expand file tree Collapse file tree 3 files changed +75
-1
lines changed Expand file tree Collapse file tree 3 files changed +75
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy CodeChavez Repository Pattern NuGet
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-and-push :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Setup .NET (use global.json)
17+ uses : actions/setup-dotnet@v4
18+
19+ - name : ls
20+ run : ls
21+
22+ - name : ls src
23+ run : ls src
24+
25+ - name : Restore dependencies
26+ run : dotnet restore **/CodeChavez.Repository.Pattern.MongoDB/CodeChavez.Repository.Pattern.MongoDB.csproj --configfile nuget.config --no-cache
27+
28+ - name : Build project
29+ run : dotnet build **/CodeChavez.Repository.Pattern.MongoDB/CodeChavez.Repository.Pattern.MongoDB.csproj --configuration Release
30+
31+ - name : Package
32+ run : dotnet pack **/CodeChavez.Repository.Pattern.MongoDB/CodeChavez.Repository.Pattern.MongoDB.csproj --configuration Release --no-build --output ./artifacts2
33+
34+ - name : Push NuGet package
35+ run : dotnet nuget push "./artifacts2/*.nupkg" --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json
36+ env :
37+ NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY }}
Original file line number Diff line number Diff line change 2828 - name : Build project
2929 run : dotnet build **/CodeChavez.Repository.Pattern/CodeChavez.Repository.Pattern.csproj --configuration Release
3030
31- - name : Package Common
31+ - name : Package
3232 run : dotnet pack **/CodeChavez.Repository.Pattern/CodeChavez.Repository.Pattern.csproj --configuration Release --no-build --output ./artifacts1
3333
3434 - name : Push NuGet package
Original file line number Diff line number Diff line change 1+ name : Deploy CodeChavez Repository Pattern NuGet
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ jobs :
10+ build-and-push :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v4
15+
16+ - name : Setup .NET (use global.json)
17+ uses : actions/setup-dotnet@v4
18+
19+ - name : ls
20+ run : ls
21+
22+ - name : ls src
23+ run : ls src
24+
25+ - name : Restore dependencies
26+ run : dotnet restore **/CodeChavez.Repository.Pattern.Postgres/CodeChavez.Repository.Pattern.Postgres.csproj --configfile nuget.config --no-cache
27+
28+ - name : Build project
29+ run : dotnet build **/CodeChavez.Repository.Pattern.Postgres/CodeChavez.Repository.Pattern.Postgres.csproj --configuration Release
30+
31+ - name : Package
32+ run : dotnet pack **/CodeChavez.Repository.Pattern.Postgres/CodeChavez.Repository.Pattern.Postgres.csproj --configuration Release --no-build --output ./artifacts2
33+
34+ - name : Push NuGet package
35+ run : dotnet nuget push "./artifacts2/*.nupkg" --api-key $NUGET_AUTH_TOKEN --source https://api.nuget.org/v3/index.json
36+ env :
37+ NUGET_AUTH_TOKEN : ${{ secrets.NUGET_API_KEY }}
You can’t perform that action at this time.
0 commit comments