Skip to content

Conversation

@martincostello
Copy link
Member

Add a workflow that can be manually triggered to create a new GitHub release.

The next stage of the automation would be to create a separate workflow that runs on a schedule, and then triggers this workflow through the GitHub API if there are relevant changes that need to be released.

Contributes to #846.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Actions workflow to automate the creation of GitHub releases. The workflow can be manually triggered via workflow_dispatch and supports optional inputs for creating draft releases and specifying version numbers. If no version is provided, it automatically increments the patch version from the latest release.

Key changes:

  • Added publish-release.yml workflow with manual trigger support
  • Implemented automatic version calculation based on the latest release
  • Integrated with GitHub App authentication for elevated permissions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

martincostello added a commit that referenced this pull request Nov 21, 2025
Testing secrets and permissions for #868.
@martincostello
Copy link
Member Author

Need to fix the secrets:

{"errors":["1 error occurred:\n\t* failed to create an authenticated GitHub client: could not parse private key: Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key\n\n"]}

type: boolean
default: false
version:
description: "The optional version number to use for the release."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is used if not provided?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh, it's minor bump - would still be good to document both here and in RELEASING.md

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's +1 the patch number of the current latest release if unspecified. The docs can have an overhaul once this is tested and working.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs updated.

Copilot AI review requested due to automatic review settings November 25, 2025 11:11
@martincostello
Copy link
Member Author

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martincostello martincostello marked this pull request as ready for review November 25, 2025 11:17
Copilot AI review requested due to automatic review settings November 25, 2025 11:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martincostello martincostello enabled auto-merge (squash) November 26, 2025 15:10
Add a workflow that can be manually triggered to create a new GitHub release.

Contributes to #846.
Use double quotes for YAML.
Make line shorter.
Adjust whitespace.
Add job to test the new GitHub app's permissions.
Remove the code for testing the token generation.
Add instructions for the new process.
Match convention for other workflows.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@martincostello martincostello merged commit 10c703e into main Nov 28, 2025
50 checks passed
@martincostello martincostello deleted the add-release-workflow branch November 28, 2025 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants