4.1.0 #16
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: ROS Bloom Release | |
on: | |
push: | |
tags: | |
# ROS versions follow semantic versioning | |
- '[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
# Install the Github CLI tool so we can authenticate with github | |
- name: Install GitHub cli | |
run: | | |
sudo apt-get update | |
sudo apt-get install curl | |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg | |
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-get update | |
sudo apt-get install gh | |
# Install bloom | |
- name: Install bloom | |
run: sudo apt-get update && sudo apt-get install -y python3-bloom | |
# Save authentication so bloom can login | |
- name: Authenticate Bloom | |
run: | | |
echo "{ \"github_user\": \"${GITHUB_USERNAME}\", \"oauth_token\": \"${GITHUB_PASSWORD}\" }" > ~/.config/bloom | |
env: | |
GITHUB_USERNAME: ${{ secrets.MICROSTRAIN_GITHUB_USERNAME }} | |
GITHUB_PASSWORD: ${{ secrets.MICROSTRAIN_GITHUB_PASSWORD }} | |
# Authenticate with Github | |
- name: Authenticate Github | |
run: | | |
# Bit of a hack, but this forces git to use the credentials from the github CLI | |
echo "${GITHUB_PASSWORD}" | gh auth login --with-token | |
echo " user: ${GITHUB_USERNAME}" >> ~/.config/gh/hosts.yml | |
echo " git_protocol: https" >> ~/.config/gh/hosts.yml | |
gh auth setup-git | |
env: | |
GITHUB_USERNAME: ${{ secrets.MICROSTRAIN_GITHUB_USERNAME }} | |
GITHUB_PASSWORD: ${{ secrets.MICROSTRAIN_GITHUB_PASSWORD }} | |
# Tell git who we are | |
- name: Configure Git | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "Microstrain Builder" | |
# Release melodic | |
- name: Release Melodic | |
run: bloom-release microstrain_inertial --rosdistro melodic --no-web --non-interactive | |
# Release noetic | |
- name: Release Noetic | |
run: bloom-release microstrain_inertial --rosdistro noetic --no-web --non-interactive |