-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move and fix release note generation (infra) (#841)
* Moved release note generation and env setup * Also setup gh for the stable release workflow * Update only after key verification * Minor: update not interactive * Better ubuntu-shell commands and verification * Fixed users and paths
- Loading branch information
Showing
3 changed files
with
36 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Beta release notes | ||
run-name: Beta release notes for ${{ github.ref_name }} | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
Release: | ||
runs-on: [self-hosted, linux, large] | ||
steps: | ||
- name: Setup the gh repository and install gh | ||
run: | | ||
which curl || (sudo apt update && sudo apt install curl -y) | ||
sudo curl https://cli.github.com/packages/githubcli-archive-keyring.gpg --output /usr/share/keyrings/githubcli-archive-keyring.gpg | ||
sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg | ||
gpg --import /usr/share/keyrings/githubcli-archive-keyring.gpg | ||
gpg --fingerprint "2C6106201985B60E6C7AC87323F3D4EA75716059" | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null | ||
sudo apt update -qq | ||
sudo apt install -qq -y gh | ||
- name: Generate the github release note | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
LP_CREDENTIALS: ${{ secrets.LP_CREDS }} | ||
CHECKBOX_REPO: ${{ github.repository }} | ||
run: | | ||
gh release create $(git describe --tags --abbrev=0 --match v*) -d --generate-notes |