Skip to content

Commit

Permalink
Creating releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jandev committed Jan 6, 2021
1 parent d96f04a commit f2a6f0a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,17 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: Package ${{ steps.gitversion.outputs.nuGetVersionV2 }}
path: ${{ env.OUTPUT_PATH }}
path: ${{ env.OUTPUT_PATH }}

- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
tag_name: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
files: |
${{ env.OUTPUT_PATH }}AzureFunctions.HttpBinding.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg
draft: false
prerelease: true
20 changes: 18 additions & 2 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,26 @@ jobs:

- name: Execute unit tests
run: dotnet test

- name: Publish NuGet
uses: brandedoutcast/publish-nuget@v2.5.5
with:
PROJECT_FILE_PATH: HttpBinding/HttpBinding.csproj
VERSION_STATIC: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
NUGET_KEY: ${{secrets.NUGET_KEY}}
NUGET_KEY: ${{secrets.NUGET_KEY}}

- name: Create NuGet package
run: dotnet pack ./HttpBinding/HttpBinding.csproj -c Release -o ${{ env.OUTPUT_PATH }} /p:VersionPrefix=${{ steps.gitversion.outputs.nuGetVersionV2 }}

- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ steps.gitversion.outputs.nuGetVersionV2 }}
tag_name: ${{ steps.gitversion.outputs.nuGetVersionV2 }}
files: |
${{ env.OUTPUT_PATH }}AzureFunctions.HttpBinding.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg
draft: false
prerelease: false

0 comments on commit f2a6f0a

Please sign in to comment.