Skip to content

Commit fd9048b

Browse files
Update CD.yml
Temp change to publish NuGet package
1 parent e43d8cb commit fd9048b

1 file changed

Lines changed: 21 additions & 16 deletions

File tree

.github/workflows/CD.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
name: CD
22

33
on:
4-
release:
5-
types: [published]
4+
workflow_dispatch:
5+
#release:
6+
#types: [published]
67

78
env:
89
TITLE: ".NET Development ToolBox"
910
DESCRIPTION: "A set of core methods and classes to ease every days .NET development tasks."
1011
TAGS: "thunderdesign toolbox visual%2Dstudio c%2Dsharp dotnet%2Dstandard dotnet%2Dframework dotnet%2Dcore cross%2Dplatform pcl%2Dlibrary mono xamarin%2Dforms xamarin%2Dandroid xamarin%2Dios xamarin%2Dmac xamarin%2Duwp unity csharp net dotnet"
11-
#FILE_NAME: ex: "ThunderDesign.Net-PCL.ToolBox"
12-
FILE_NAME: "${{ github.event.repository.name }}"
13-
#REPOSITORY_NAME: ex: "ThunderDesign.Net-PCL.ToolBox"
14-
REPOSITORY_NAME: ${{ github.event.repository.name }}
15-
#REPOSITORY_OWNER: ex: "ThunderDesign"
16-
REPOSITORY_OWNER: ${{ github.repository_owner }}
17-
#GITHUB_URL: ex: "https://github.com/ThunderDesign"
18-
GITHUB_URL: ${{ github.server_url }}/${{ github.repository_owner }}
19-
#REPOSITORY_URL: ex: "https://github.com/ThunderDesign/ThunderDesign.Net-PCL.ToolBox"
20-
REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository_owner }}/${{ github.event.repository.name }}
12+
FILE_NAME: ex: "ThunderDesign.Net-PCL.ToolBox"
13+
#FILE_NAME: "${{ github.event.repository.name }}"
14+
REPOSITORY_NAME: ex: "ThunderDesign.Net-PCL.ToolBox"
15+
#REPOSITORY_NAME: ${{ github.event.repository.name }}
16+
REPOSITORY_OWNER: ex: "ThunderDesign"
17+
#REPOSITORY_OWNER: ${{ github.repository_owner }}
18+
GITHUB_URL: ex: "https://github.com/ThunderDesign"
19+
#GITHUB_URL: ${{ github.server_url }}/${{ github.repository_owner }}
20+
REPOSITORY_URL: ex: "https://github.com/ThunderDesign/ThunderDesign.Net-PCL.ToolBox"
21+
#REPOSITORY_URL: ${{ github.server_url }}/${{ github.repository_owner }}/${{ github.event.repository.name }}
2122

2223
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output
2324

@@ -64,13 +65,17 @@ jobs:
6465
shell: pwsh
6566

6667
- name: Create NuGet Package
67-
run: nuget pack ThunderDesign.Net-PCL.nuspec -Version ${{ github.event.release.tag_name }} -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
68+
run: nuget pack ThunderDesign.Net-PCL.nuspec -Version 3.1.0 -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
69+
#run: nuget pack ThunderDesign.Net-PCL.nuspec -Version ${{ github.event.release.tag_name }} -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }}
6870

6971
- name: Archive NuGet Package
7072
uses: actions/upload-artifact@v4
7173
with:
72-
name: Package_${{ env.FILE_NAME}}.${{ github.event.release.tag_name }}
73-
path: ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.${{ github.event.release.tag_name }}.nupkg
74+
name: Package_${{ env.FILE_NAME}}.3.1.0
75+
path: ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.3.1.0.nupkg
76+
#name: Package_${{ env.FILE_NAME}}.${{ github.event.release.tag_name }}
77+
#path: ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.${{ github.event.release.tag_name }}.nupkg
7478

7579
- name: Publish NuGet Package
76-
run: nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.${{ github.event.release.tag_name }}.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
80+
run: nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.3.1.0.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}
81+
#run: nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.${{ github.event.release.tag_name }}.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)