-
-
Notifications
You must be signed in to change notification settings - Fork 28
35 lines (29 loc) · 764 Bytes
/
ci.yml
File metadata and controls
35 lines (29 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: ci
on:
push:
paths-ignore:
- 'doc/**'
- 'img/**'
- 'changelog.md'
- 'license.txt'
- 'readme.md'
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install .NET 10.0
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Build and Test (Debug)
run: dotnet test src -c Debug
- name: Self Build - Publish (main only)
if: github.event_name == 'push'
shell: bash
run: |
./src/dotnet-releaser/bin/Debug/net10.0/dotnet-releaser run --nuget-token "${{secrets.NUGET_TOKEN}}" --github-token "${{secrets.GITHUB_TOKEN}}" src/dotnet-releaser.toml