|
1 | 1 | name: CD |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: |
5 | | - #release: |
6 | | - #types: [published] |
| 4 | + release: |
| 5 | + types: [published] |
7 | 6 |
|
8 | 7 | env: |
9 | 8 | TITLE: ".NET Development ToolBox" |
10 | 9 | DESCRIPTION: "A set of core methods and classes to ease every days .NET development tasks." |
11 | 10 | 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" |
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 }} |
| 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 }} |
22 | 21 |
|
23 | 22 | PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output |
24 | 23 |
|
@@ -65,17 +64,13 @@ jobs: |
65 | 64 | shell: pwsh |
66 | 65 |
|
67 | 66 | - name: Create NuGet Package |
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 }} |
| 67 | + run: nuget pack ThunderDesign.Net-PCL.nuspec -Version ${{ github.event.release.tag_name }} -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
70 | 68 |
|
71 | 69 | - name: Archive NuGet Package |
72 | 70 | uses: actions/upload-artifact@v4 |
73 | 71 | with: |
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 |
| 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 |
78 | 74 |
|
79 | 75 | - name: Publish NuGet Package |
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 }} |
| 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 }} |
0 commit comments