Skip to content

Commit 3cb4055

Browse files
committed
Merge branch 'release/6.0.0' into core6
# Conflicts: # .github/workflows/main.yml
2 parents 37434ec + ef79459 commit 3cb4055

File tree

3 files changed

+28
-71
lines changed

3 files changed

+28
-71
lines changed

.github/workflows/main.yml

+4-71
Original file line numberDiff line numberDiff line change
@@ -2,79 +2,12 @@ name: CI
22

33
on:
44
push:
5+
branches:
6+
- '**' # Ignores pushes of tags
57
pull_request:
68
workflow_dispatch:
79

810
jobs:
911
build:
10-
runs-on: windows-latest # Use Ubuntu in v5.0
11-
12-
env:
13-
DOTNET_NOLOGO: true
14-
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Avoid pre-populating the NuGet package cache
15-
16-
steps:
17-
- uses: actions/checkout@v3
18-
with:
19-
fetch-depth: 0 # all
20-
21-
- name: Setup .NET 8.0
22-
uses: actions/setup-dotnet@v1
23-
with:
24-
dotnet-version: 8.0.x
25-
26-
- name: Install NuGet
27-
uses: NuGet/[email protected]
28-
29-
- name: Install GitVersion
30-
uses: gittools/actions/gitversion/setup@v0
31-
with:
32-
versionSpec: '5.x'
33-
34-
- name: Run GitVersion
35-
id: gitversion
36-
uses: gittools/actions/gitversion/execute@v0
37-
38-
- name: Display SemVer
39-
run: |
40-
echo "SemVer: $env:GitVersion_SemVer"
41-
42-
- name: Add DbUp NuGet Source
43-
run: dotnet nuget add source --name DbUp --username DbUp --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text https://nuget.pkg.github.com/DbUp/index.json
44-
45-
- name: Restore
46-
run: dotnet restore
47-
working-directory: src
48-
49-
- name: Build
50-
run: dotnet build -c Release --no-restore /p:Version=$env:GitVersion_SemVer
51-
working-directory: src
52-
53-
- name: Test
54-
run: dotnet test --no-build -c Release --logger trx --logger "console;verbosity=detailed" --results-directory ../artifacts
55-
working-directory: src
56-
57-
- name: Pack
58-
run: dotnet pack --no-build -c Release -o ../artifacts /p:Version=$env:GitVersion_SemVer
59-
working-directory: src
60-
61-
- name: Pack placeholder dbup package
62-
run: nuget pack ./dbup/dbup.nuspec -OutputDirectory ../artifacts -Version $env:GitVersion_SemVer
63-
working-directory: src
64-
65-
- name: Push NuGet packages to GitHub Packages ⬆️
66-
working-directory: artifacts
67-
run: dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/DbUp/index.json"
68-
69-
- name: Push NuGet packages to NuGet ⬆️
70-
if: ${{ steps.gitversion.outputs.preReleaseLabel == '' }}
71-
working-directory: artifacts
72-
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
73-
74-
- name: Test Report 🧪
75-
uses: dorny/test-reporter@v1
76-
if: ${{ always() }}
77-
with:
78-
name: Tests
79-
path: artifacts/*.trx
80-
reporter: dotnet-trx
12+
name: Build
13+
uses: DbUp/Universe/.github/workflows/build.yml@main

.github/workflows/publish-release.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Publish DbUp Packages to NuGet
2+
3+
on:
4+
release:
5+
types: [ published ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
name: Publish Package
11+
uses: DbUp/Universe/.github/workflows/publish-release.yml@main
12+
secrets: inherit

.github/workflows/test-report.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Test Report
2+
run-name: Generate Test Report for workflow ${{ github.event.workflow_run.name }} run ${{ github.event.workflow_run.run_number }} branch ${{ github.event.workflow_run.head_branch }}
3+
4+
on:
5+
workflow_run:
6+
workflows: ["CI", "build"]
7+
types: [completed]
8+
9+
jobs:
10+
report:
11+
name: Test Report 🧪
12+
uses: DbUp/Universe/.github/workflows/test-report.yml@main

0 commit comments

Comments
 (0)