Skip to content

Commit

Permalink
use softprops release instead
Browse files Browse the repository at this point in the history
  • Loading branch information
rorydbain committed Oct 28, 2024
1 parent 86b9c9b commit 35c030e
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
tags:
- 'v*'

permissions:
contents: write # Grants write access to the repository contents, including releases and assets

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -25,21 +28,9 @@ jobs:
- name: Build binary
run: make build VERSION=${{ steps.get_version.outputs.version }}

- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.get_version.outputs.version }}
release_name: ${{ steps.get_version.outputs.version }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload binary to release
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./notify_incident_io
asset_name: notify_incident_io
asset_content_type: application/octet-stream
name: ${{ steps.get_version.outputs.version }}
files: ./notify_incident_io

0 comments on commit 35c030e

Please sign in to comment.