Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload rolling pre-releases #182

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahelwer
Copy link
Collaborator

@ahelwer ahelwer commented Nov 29, 2024

Finally got around to this. This sets up rolling pre-release publishing similar to what exists for the TLA+ tools, where the head of the main branch is built and uploaded to a github release for ease of consumption.

This work requires some changes to the repository settings:

  1. Create a release environment and constrain it to only be accessible from the main branch
  2. Create a new pre-release titled (for example) Version 1.6.0 rolling pre-release or similar
  3. Create a fine-grained personal access token with read/write access to releases in the tlaplus/tlapm repo
  4. Store the access token in the release environment secrets as TLAPM_RELEASES_AT
  5. Define the ROLLING_PRERELEASE_VERSION environment variable in the release environment to be 1.6.0-pre or similar
  6. Define the ROLLING_PRERELEASE_GITHUB_NAME environment variable in the release environment to be whatever you called the release in step (2)

If you give me more permissions on this repo I'll do all of that or whoever is reviewing this can do it themselves. I've tested this on my own fork of the TLAPM repo; you can see what the release with uploaded artifacts looks like here: https://github.com/ahelwer/tlapm/releases/tag/1.6.0-pre

This is a good first step to get this working and then later we can add the following features:

  1. Update the tag associated with the release to track the head of the main branch
  2. Do macOS code signing (ref Sign TLAPS release to be accepted by macOS gatekeeper #46)
  3. Upload the releases to the Inria server as well

Ref #92

Signed-off-by: Andrew Helwer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant