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