You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/publish.yml
+81-7Lines changed: 81 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@ name: publish
2
2
3
3
on:
4
4
workflow_dispatch:
5
+
inputs:
6
+
manual_version:
7
+
description: 'Force a specific version for NuGet.org publish (e.g., 1.0.0 or 1.0.0-rc.1). If empty, defaults to auto-generated preview for GitHub Packages.'
8
+
required: false
9
+
type: string
5
10
push:
6
11
tags:
7
12
- "v*"
@@ -13,6 +18,10 @@ permissions:
13
18
jobs:
14
19
pack_and_publish:
15
20
runs-on: macos-latest
21
+
permissions:
22
+
contents: read
23
+
packages: write
24
+
id-token: write
16
25
steps:
17
26
- uses: actions/checkout@v4
18
27
with:
@@ -22,24 +31,69 @@ jobs:
22
31
id: version
23
32
shell: bash
24
33
run: |
25
-
if [[ "${{ github.ref }}" =~ ^refs/tags/v ]]; then
0 commit comments