Skip to content

Commit ec6c267

Browse files
postgres action for preview on devops
1 parent e5d41f6 commit ec6c267

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: PostgreSQL data lib
2+
3+
on:
4+
5+
# Automatically trigger it when detected changes in repo
6+
push:
7+
branches:
8+
[ main ]
9+
paths:
10+
- 'src/services/common/Codebreaker.Data.PostgreSQL/**'
11+
12+
# Allow manually trigger
13+
workflow_dispatch:
14+
15+
jobs:
16+
build:
17+
uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/createnuget-withbuildnumber.yml@main
18+
with:
19+
version-suffix: preview.1.
20+
version-number: ${{ github.run_number }}
21+
version-offset: 5
22+
solutionfile-path: src/Codebreaker.Backend.PostgreSQL.sln
23+
projectfile-path: src/services/common/Codebreaker.Data.PostgreSQL/Codebreaker.Data.PostgreSQL.csproj
24+
dotnet-version: '9.0.x'
25+
artifact-name: codebreaker-postgres
26+
branch-name: main
27+
28+
publishdevops:
29+
uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-azuredevops.yml@main
30+
needs: build
31+
with:
32+
artifact-name: codebreaker-postgres
33+
secrets: inherit
34+
35+
# publishnuget:
36+
# uses: CodebreakerApp/Codebreaker.Backend/.github/workflows/publishnuget-nugetserver.yml@main
37+
# needs: publishdevops
38+
# with:
39+
# artifact-name: codebreaker-sqlserver
40+
# secrets: inherit

0 commit comments

Comments
 (0)