Skip to content

Commit

Permalink
Merge pull request #12 from curtisbowden/build-release-update
Browse files Browse the repository at this point in the history
update for github actions build-release
  • Loading branch information
curtisbowden authored Apr 22, 2024
2 parents 67767f8 + 0e59634 commit 37a63c0
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
files: ${{ steps.cmkpkg.outputs.pkgfile }}

0 comments on commit 37a63c0

Please sign in to comment.