|
1 | 1 | name: CD |
2 | 2 |
|
3 | 3 | on: |
4 | | - workflow_dispatch: |
5 | | - # release: |
6 | | - # types: [published] |
| 4 | + # workflow_dispatch: |
| 5 | + release: |
| 6 | + types: [published] |
7 | 7 |
|
8 | 8 | env: |
9 | 9 | TITLE: "Thread-Safe Objects" |
10 | 10 | DESCRIPTION: "A combination of generic Thread-Safe objects for .Net development." |
11 | | - TAGS: "thunderdesign 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 threading bindable binding" |
| 11 | + TAGS: "thunderdesign threading thread%2Dsafe thread%2Dsafety threadsafe maui maui%2Dapp c%2Dsharp dotnet%2Dstandard dotnet%2Dframework dotnet%2Dcore cross%2Dplatform pcl%2Dlibrary xamarin unity csharp net dotnet bindable binding" |
12 | 12 | #FILE_NAME: ex: "ThunderDesign.Net-PCL.Threading" |
13 | 13 | FILE_NAME: "${{ github.event.repository.name }}" |
14 | 14 | #REPOSITORY_NAME: ex: "ThunderDesign.Net-PCL.Threading" |
@@ -61,16 +61,16 @@ jobs: |
61 | 61 | shell: pwsh |
62 | 62 |
|
63 | 63 | - name: Create NuGet Package |
64 | | - run: nuget pack ThunderDesign.Net-PCL.nuspec -Version 1.1.4 -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
65 | | - # run: nuget pack ThunderDesign.Net-PCL.nuspec -Version ${{ github.event.release.tag_name }} -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
| 64 | + # run: nuget pack ThunderDesign.Net-PCL.nuspec -Version 1.1.4 -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
| 65 | + run: nuget pack ThunderDesign.Net-PCL.nuspec -Version ${{ github.event.release.tag_name }} -OutputDirectory ${{ env.PACKAGE_OUTPUT_DIRECTORY }} |
66 | 66 |
|
67 | 67 | - name: Archive NuGet Package |
68 | 68 | uses: actions/upload-artifact@v4 |
69 | 69 | with: |
70 | | - name: Package_${{ env.FILE_NAME}}.1.1.4 |
71 | | - path: ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.1.1.4.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 |
| 70 | + # name: Package_${{ env.FILE_NAME}}.1.1.4 |
| 71 | + # path: ${{ env.PACKAGE_OUTPUT_DIRECTORY}}\${{ env.FILE_NAME}}.1.1.4.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 |
74 | 74 |
|
75 | | - # - 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 }} |
| 75 | + - 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 }} |
0 commit comments