-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Eliminates some of the bate and switch github provided actions for ju…
…st using gh cli for github actions
- Loading branch information
Showing
1 changed file
with
3 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,38 +55,14 @@ jobs: | |
name: TestResults | ||
path: TestResults | ||
|
||
- name: Build changelog | ||
id: gitLog | ||
uses: jarrodparkes/[email protected] | ||
with: | ||
start: ${{ steps.previousTag.outputs.tag }} | ||
end: ${{ github.ref }} | ||
|
||
- name: GitHub release | ||
uses: actions/create-release@v1 | ||
id: release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
release_name: ${{ steps.version.outputs.version-without-v }} | ||
tag_name: ${{ github.ref }} | ||
body: ${{ env.LOG }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: ZIP release artifact | ||
run: zip -r ${{ env.APP }}-${{ steps.version.outputs.version-without-v }}.zip ${{ env.BUILDOUTPUTPATH }} | ||
|
||
- name: GitHub release assets | ||
uses: actions/upload-release-asset@v1 | ||
id: release_assets | ||
- name: GitHub release | ||
id: release | ||
run: gh release create ${{ github.ref }} "${{ env.APP }}-${{ steps.version.outputs.version-without-v }}.zip" -t "${{ steps.version.outputs.version-without-v }}" --generate-notes --notes-start-tag ${{ steps.previousTag.outputs.tag }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.release.outputs.upload_url }} | ||
asset_path: ${{ env.APP }}-${{ steps.version.outputs.version-without-v }}.zip | ||
asset_name: ${{ env.APP }}-${{ steps.version.outputs.version-without-v }}.zip | ||
asset_content_type: application/zip | ||
|
||
- name: NuGet pack | ||
run: dotnet pack ${{ env.SOLUTION }} --configuration Release --no-restore --include-symbols /p:Version=${{ steps.version.outputs.version-without-v }} -o ${{ env.PACKOUTPUTPATH }} | ||
|