diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 91c70d5..67b8487 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 \ No newline at end of file + name: ${{ steps.get_version.outputs.version }} + files: ./notify_incident_io \ No newline at end of file