Repository navigation
57 lines (52 loc) · 1.75 KB
/
Copy pathdotnet.yml
File metadata and controls
57 lines (52 loc) · 1.75 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build, test and publish
on:
push:
branches:
- main
tags:
- v**
permissions:
contents: write
jobs:
build-test-publish:
name: Build, test and publish
uses: HavenDV/workflows/.github/workflows/dotnet_build-test-publish.yml@main
with:
generate-build-number: false
conventional-commits-publish-conditions: false
additional-test-arguments: '--logger GitHubActions'
auto-stable-release:
needs: [build-test-publish]
if: github.ref == 'refs/heads/main'
uses: tryAGI/workflows/.github/workflows/auto-stable-release.yml@main
with:
project-path: LangChain.Databases.slnx
candidate-source: build
# Fails in seconds when the nuget.org trusted-publishing policy is missing or no longer matches, rather
# than letting the whole build run and surfacing the mismatch as an HTTP 401 at the push. It declares no
# `needs`, so it runs beside the build instead of after it, and it has to stay in this workflow for the
# same reason the push does: nuget.org matches the policy against job_workflow_ref.
nuget-trusted-publish-check:
name: Check NuGet trusted publishing
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: tryAGI/workflows/.github/actions/nuget-trusted-publish-check@main
with:
user: havendv
nuget-trusted-publish:
name: NuGet trusted publishing
needs: build-test-publish
if: github.event_name == 'push'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: tryAGI/workflows/.github/actions/nuget-publish@main
with:
user: havendv
artifact-pattern: nuget-packages-ubuntu-latest