Skip to content

Commit f2a6f0a

Browse files
committed
Creating releases
1 parent d96f04a commit f2a6f0a

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,17 @@ jobs:
5353
uses: actions/upload-artifact@v2
5454
with:
5555
name: Package ${{ steps.gitversion.outputs.nuGetVersionV2 }}
56-
path: ${{ env.OUTPUT_PATH }}
56+
path: ${{ env.OUTPUT_PATH }}
57+
58+
- name: Create release
59+
id: create_release
60+
uses: softprops/action-gh-release@v1
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
with:
64+
name: Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
65+
tag_name: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
66+
files: |
67+
${{ env.OUTPUT_PATH }}AzureFunctions.HttpBinding.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg
68+
draft: false
69+
prerelease: true

.github/workflows/new-release.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,26 @@ jobs:
5050

5151
- name: Execute unit tests
5252
run: dotnet test
53-
53+
5454
- name: Publish NuGet
5555
uses: brandedoutcast/[email protected]
5656
with:
5757
PROJECT_FILE_PATH: HttpBinding/HttpBinding.csproj
5858
VERSION_STATIC: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
59-
NUGET_KEY: ${{secrets.NUGET_KEY}}
59+
NUGET_KEY: ${{secrets.NUGET_KEY}}
60+
61+
- name: Create NuGet package
62+
run: dotnet pack ./HttpBinding/HttpBinding.csproj -c Release -o ${{ env.OUTPUT_PATH }} /p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersionV2 }}
63+
64+
- name: Create release
65+
id: create_release
66+
uses: softprops/action-gh-release@v1
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
with:
70+
name: Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
71+
tag_name: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
72+
files: |
73+
${{ env.OUTPUT_PATH }}AzureFunctions.HttpBinding.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg
74+
draft: false
75+
prerelease: false

0 commit comments

Comments
 (0)