This commit adds the 'permissions: contents: write' block to the release workflow.
This is necessary to allow the workflow to create a GitHub release and upload assets. This follows the principle of least privilege by only granting write permissions to the workflow that needs it.