File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,25 @@ name: Publish .NET Template
2
2
3
3
on :
4
4
push :
5
- branches : [ "main" ]
5
+ branches : ["main"]
6
6
7
7
jobs :
8
8
publish :
9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
12
- uses : actions/checkout@v3
13
-
13
+
14
14
- uses : nuget/setup-nuget@v1
15
15
with :
16
- nuget-version : ' 6.x'
16
+ nuget-version : " 6.x"
17
17
18
18
- name : Get version number
19
19
id : version
20
20
run : echo "::set-output name=version::$(date +'%Y.%m.%d').$GITHUB_RUN_NUMBER"
21
21
22
22
- name : Create package
23
23
run : nuget pack DefaultCSharpRepoFiles.nuspec -NoDefaultExcludes -version ${{ steps.version.outputs.version }}
24
-
24
+
25
25
- name : Publish package
26
- run : nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
27
-
26
+ run : nuget push *.nupkg -Source 'https://api.nuget.org/v3/index.json' -ApiKey ${{secrets.NUGET_API_KEY}}
You can’t perform that action at this time.
0 commit comments