Skip to content

Commit 7cfd871

Browse files
authored
feat: remove nuke and create a new workflow (#142)
* feat: remove nuke * feat: add new dependabot * feat: add new pipeline * fix: remove schedule * ci: pack sln * ci: do not run publish if pr * ci: rename workflow * build: set TreatWarningsAsErrors * ci: set name for workflow * docs: add CODEOWNERS * fix: make dependabot listen to sln
1 parent b5e91d9 commit 7cfd871

24 files changed

+75
-651
lines changed

.github/dependabot.yml .github/dependabot.yaml

+2-10
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@ updates:
88
interval: "monthly"
99
time: "09:00"
1010
timezone: "Europe/Oslo"
11-
11+
1212
- package-ecosystem: "nuget"
13-
directory: "/build"
14-
schedule:
15-
interval: "monthly"
16-
time: "09:00"
17-
timezone: "Europe/Oslo"
18-
19-
- package-ecosystem: "nuget"
20-
directory: "/src"
13+
directory: "/"
2114
schedule:
2215
interval: "monthly"
2316
time: "09:00"
@@ -28,4 +21,3 @@ updates:
2821
all:
2922
patterns:
3023
- "*"
31-
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build and release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
name: Build and release
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup .NET 9
19+
uses: actions/setup-dotnet@v4
20+
with:
21+
dotnet-version: 9.0.*
22+
23+
- name: Restore dotnet
24+
run: dotnet restore
25+
26+
- name: Build dotnet
27+
run: dotnet build --no-restore
28+
29+
- name: Docker meta
30+
id: meta
31+
if: github.event_name != 'pull_request'
32+
uses: docker/metadata-action@v5
33+
with:
34+
sep-tags: ";"
35+
tags: |
36+
type=ref,event=branch
37+
type=semver,pattern={{version}}
38+
39+
- name: Pack .NET project
40+
if: github.event_name != 'pull_request'
41+
run: dotnet pack Intility.Logging.sln -o Intility.Logging/output --property:Version=${{ steps.meta.outputs.tags }}
42+
43+
- name: Publish to NuGet
44+
if: github.event_name != 'pull_request'
45+
run: dotnet nuget push Intility.Logging/output/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

.github/workflows/compile.yaml

-26
This file was deleted.

.github/workflows/publish.yaml

-48
This file was deleted.

.nuke/build.schema.json

-131
This file was deleted.

.nuke/parameters.json

-4
This file was deleted.

.vscode/tasks.json

-60
This file was deleted.

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @Intility/dotnet-devs

build.cmd

-7
This file was deleted.

0 commit comments

Comments
 (0)