From 34d40b292bca073c958b681ecf2f3c226781fe4c Mon Sep 17 00:00:00 2001 From: Michael Hallock Date: Sun, 27 Nov 2022 21:38:48 -0500 Subject: [PATCH] Eliminates some of the bate and switch github provided actions for just using gh cli for github actions --- .github/workflows/release.yml | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3b57b3..6167fa3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,38 +55,14 @@ jobs: name: TestResults path: TestResults - - name: Build changelog - id: gitLog - uses: jarrodparkes/git-log-action@1.0.0 - 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 }}