From 0e596342ebab8cc90ba61e059d9f2b20e4b7a41c Mon Sep 17 00:00:00 2001 From: Curtis Bowden Date: Mon, 22 Apr 2024 18:12:54 +0000 Subject: [PATCH] update for github actions build-release --- .github/workflows/build-release.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 4ed8e4e..50cdab3 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -11,7 +11,9 @@ jobs: name: Build Release Package runs-on: ubuntu-latest container: - image: checkmk/check-mk-raw:2.0.0-latest + image: checkmk/check-mk-raw:2.1.0-latest + permissions: + contents: write env: OMD_ROOT: /omd/sites/cmk @@ -32,22 +34,9 @@ jobs: id: cmkpkg - name: Create Release - id: create_release - uses: actions/create-release@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} draft: false prerelease: false - - - name: Upload Release Asset - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./${{ steps.cmkpkg.outputs.pkgfile }} - asset_name: ${{ steps.cmkpkg.outputs.pkgfile }} - asset_content_type: application/octet-stream \ No newline at end of file + files: ${{ steps.cmkpkg.outputs.pkgfile }} \ No newline at end of file