Promote beta versions of checkbox to stable #10
Workflow file for this run
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
name: Stable version of checkbox | |
run-name: Promote beta versions of checkbox to stable | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
name: Publish the release | |
runs-on: | |
group: "Canonical self-hosted runners" | |
labels: | |
- self-hosted | |
- linux | |
- jammy | |
- large | |
- X64 | |
steps: | |
- name: Checkout checkbox monorepo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
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: Edit the draft release and publish it | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release edit $(git describe --tags --abbrev=0 --match v*) --draft=false | |
checkbox_deb_packages: | |
name: Checkbox Debian packages | |
runs-on: | |
group: "Canonical self-hosted runners" | |
labels: | |
- self-hosted | |
- linux | |
- jammy | |
- large | |
- X64 | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt update -qq | |
sudo apt install -qq -y python3-launchpadlib | |
- name: Checkout checkbox monorepo | |
uses: actions/checkout@v4 | |
- name: Copy deb packages from testing to stable ppa | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
LP_CREDENTIALS: ${{ secrets.LP_CREDS }} | |
CHECKBOX_REPO: ${{ github.repository }} | |
run: | | |
tools/release/lp_copy_packages.py checkbox-dev beta checkbox-dev stable | |
checkbox_core_snap: | |
name: Checkbox core snap packages | |
runs-on: | |
group: "Canonical self-hosted runners" | |
labels: | |
- self-hosted | |
- linux | |
- jammy | |
- large | |
- X64 | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }} | |
steps: | |
- name: Setup Snapcraft | |
run: | | |
sudo snap install snapcraft --classic | |
- name: Promote checkbox core snaps to the stable channel | |
run: | | |
snapcraft promote checkbox16 --from-channel latest/beta --to-channel latest/candidate --yes | |
snapcraft promote checkbox16 --from-channel latest/beta --to-channel latest/stable --yes | |
snapcraft promote checkbox18 --from-channel latest/beta --to-channel latest/candidate --yes | |
snapcraft promote checkbox18 --from-channel latest/beta --to-channel latest/stable --yes | |
snapcraft promote checkbox20 --from-channel latest/beta --to-channel latest/candidate --yes | |
snapcraft promote checkbox20 --from-channel latest/beta --to-channel latest/stable --yes | |
snapcraft promote checkbox22 --from-channel latest/beta --to-channel latest/candidate --yes | |
snapcraft promote checkbox22 --from-channel latest/beta --to-channel latest/stable --yes | |
snapcraft promote checkbox24 --from-channel latest/beta --to-channel latest/candidate --yes | |
snapcraft promote checkbox24 --from-channel latest/beta --to-channel latest/stable --yes | |
checkbox_snap: | |
name: Checkbox snap packages | |
runs-on: | |
group: "Canonical self-hosted runners" | |
labels: | |
- self-hosted | |
- linux | |
- jammy | |
- large | |
- X64 | |
env: | |
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT7_CREDS }} | |
steps: | |
- name: Setup Snapcraft | |
run: | | |
sudo snap install snapcraft --classic | |
- name: Promote checkbox snaps to the stable channel | |
run: | | |
snapcraft promote checkbox --from-channel uc16/beta --to-channel uc16/candidate --yes | |
snapcraft promote checkbox --from-channel uc16/beta --to-channel uc16/stable --yes | |
snapcraft promote checkbox --from-channel uc18/beta --to-channel uc18/candidate --yes | |
snapcraft promote checkbox --from-channel uc18/beta --to-channel uc18/stable --yes | |
snapcraft promote checkbox --from-channel uc20/beta --to-channel uc20/candidate --yes | |
snapcraft promote checkbox --from-channel uc20/beta --to-channel uc20/stable --yes | |
snapcraft promote checkbox --from-channel uc22/beta --to-channel uc22/candidate --yes | |
snapcraft promote checkbox --from-channel uc22/beta --to-channel uc22/stable --yes | |
snapcraft promote checkbox --from-channel 16.04/beta --to-channel 16.04/candidate --yes | |
snapcraft promote checkbox --from-channel 16.04/beta --to-channel 16.04/stable --yes | |
snapcraft promote checkbox --from-channel 18.04/beta --to-channel 18.04/candidate --yes | |
snapcraft promote checkbox --from-channel 18.04/beta --to-channel 18.04/stable --yes | |
snapcraft promote checkbox --from-channel 20.04/beta --to-channel 20.04/candidate --yes | |
snapcraft promote checkbox --from-channel 20.04/beta --to-channel 20.04/stable --yes | |
snapcraft promote checkbox --from-channel 22.04/beta --to-channel 22.04/candidate --yes | |
snapcraft promote checkbox --from-channel 22.04/beta --to-channel 22.04/stable --yes | |
snapcraft promote checkbox --from-channel 24.04/beta --to-channel 24.04/candidate --yes | |
snapcraft promote checkbox --from-channel 24.04/beta --to-channel 24.04/stable --yes | |
snapcraft promote checkbox --from-channel 22.04/beta --to-channel latest/candidate --yes | |
snapcraft promote checkbox --from-channel 22.04/beta --to-channel latest/stable --yes |