Skip to content

Conversation

FranzBusch
Copy link
Member

Motivation

In a previous PR, I added a Github workflow and scripts to attach a protoc artifactbundle to the latest draft release. This created a chicken and egg problem since we needed to reference the protoc URL in our Package.swift but the URL wasn't public until we published a release.

Modifications

This PR changes the workflow and script so that we create separate protoc-artifactbundle releases with a separate tagging scheme that won't conflict with our normal tags. These releases are only used to distribute protoc artifactbundles.

Result

We can now generate the protoc artifactbundle releases that we can reference in our Package.swift without creating this chicken and egg problem.

@FranzBusch FranzBusch added the semver/none No version bump required. label Aug 14, 2025
@FranzBusch FranzBusch requested a review from glbrntt August 14, 2025 09:31
Copy link
Contributor

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

One tiny thing, looks good otherwise!

\"name\": \"protoc v$TAG artifactbundle\",
\"body\": \"Protoc artifactbundle for version $TAG\",
\"draft\": true,
\"prerelease\": false
Copy link
Contributor

Choose a reason for hiding this comment

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

We should make sure this isn't set as the latest release. Looks like you need to set make_latest to false (https://docs.github.com/en/rest/releases/releases?apiVersion=2022-11-28#create-a-release)

# Motivation

In a previous PR, I added a Github workflow and scripts to attach a protoc artifactbundle to the latest draft release. This created a chicken and egg problem since we needed to reference the protoc URL in our Package.swift but the URL wasn't public until we published a release.

# Modifications

This PR changes the workflow and script so that we create separate protoc-artifactbundle releases with a separate tagging scheme that won't conflict with our normal tags. These releases are only used to distribute protoc artifactbundles.

# Result

We can now generate the protoc artifactbundle releases that we can reference in our Package.swift without creating this chicken and egg problem.
@FranzBusch FranzBusch enabled auto-merge (squash) August 14, 2025 12:42
@FranzBusch FranzBusch merged commit cb14a0a into apple:main Aug 14, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants