Skip to content

Commit 6144c40

Browse files
Fixed ci pipelines
1 parent ccdcbe6 commit 6144c40

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

.github/workflows/ci_dev.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on:
3+
push:
4+
branches: [ dev ]
5+
paths:
6+
- "**/*.csproj"
7+
- "Directory.Build.props"
8+
- ".github/workflows/ci.yml"
9+
10+
jobs:
11+
pack-and-push:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
packages: write
16+
17+
env:
18+
VERSION_SUFFIX: ""
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Setup .NET
24+
uses: actions/setup-dotnet@v4
25+
with:
26+
dotnet-version: '9.0.304'
27+
28+
- name: Restore
29+
run: dotnet restore --configfile ./nuget.config
30+
31+
- name: Build
32+
run: dotnet build --no-restore --configuration Release
33+
34+
- name: Pack
35+
run: dotnet pack --no-build --configuration Release -o ./artifacts /p:VersionSuffix="${{ env.VERSION_SUFFIX }}"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22
on:
33
push:
4-
branches: [ dev ]
4+
branches: [ main ]
55
paths:
66
- "**/*.csproj"
77
- "Directory.Build.props"
@@ -57,4 +57,4 @@ jobs:
5757
run: dotnet pack --no-build --configuration Release -o ./artifacts /p:VersionSuffix="${{ env.VERSION_SUFFIX }}"
5858

5959
- name: Push to GitHub Packages
60-
run: dotnet nuget push "./artifacts/*.nupkg" --skip-duplicate --source "github" --api-key "${{ secrets.GITHUB_TOKEN }}" --configfile ./nuget.config
60+
run: dotnet nuget push "./artifacts/*.nupkg" --skip-duplicate --source "github" --api-key "${{ secrets.GITHUB_TOKEN }}" --configfile ./nuget.config

0 commit comments

Comments
 (0)