Skip to content

Commit 85d7846

Browse files
committed
all
1 parent 79a0823 commit 85d7846

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}

.github/workflows/codechavez.repository.pattern.nuget.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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 }}

0 commit comments

Comments
 (0)