From 53e7287afc4b56b4daac5551c4a17f3621298df9 Mon Sep 17 00:00:00 2001 From: Greg Schueler Date: Tue, 22 Oct 2024 12:59:32 -0700 Subject: [PATCH] use gh cli for release --- .github/workflows/release.yml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e74ed45a..9c782b71 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,21 +26,11 @@ jobs: run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo ::set-output name=VERSION::$VERSION - name: Create Release id: create_release - uses: actions/create-release@v1.0.0 + run: | + gh release create \ + --generate-notes \ + --title 'Release ${{ steps.get_version.outputs.VERSION }}' \ + ${{ github.ref_name }} \ + build/libs/rundeck-ec2-nodes-plugin-${{ steps.get_version.outputs.VERSION }}.jar env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ steps.get_version.outputs.VERSION }} - draft: false - prerelease: false - - name: Upload Release Asset (jar) - id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: build/libs/rundeck-ec2-nodes-plugin-${{ steps.get_version.outputs.VERSION }}.jar - asset_name: rundeck-ec2-nodes-plugin-${{ steps.get_version.outputs.VERSION }}.jar - asset_content_type: application/octet-stream + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file