Skip to content

Commit

Permalink
Eliminates some of the bate and switch github provided actions for ju…
Browse files Browse the repository at this point in the history
…st using gh cli for github actions
  • Loading branch information
i8beef committed Nov 28, 2022
1 parent 4ced849 commit 34d40b2
Showing 1 changed file with 3 additions and 27 deletions.
30 changes: 3 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 34d40b2

Please sign in to comment.