Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsbore authored Feb 12, 2021
1 parent b83314a commit 94f0875
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: release-deb

on:
push:
tags:
- '*'

jobs:
release_build:
strategy:
matrix:
include:
- distro: melodic
ubuntu: bionic
bloom: python-bloom
- distro: noetic
ubuntu: focal
bloom: python3-bloom
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-${{ matrix.ubuntu }}-ros-${{ matrix.distro }}-ros-base-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Setup environment
run: |
sudo curl https://raw.githubusercontent.com/smarc-project/rosinstall/master/sources.list.d/smarc-${{ matrix.distro }}-latest.list -o /etc/apt/sources.list.d/smarc-latest.list
sudo curl https://raw.githubusercontent.com/smarc-project/rosinstall/master/rosdep/50-smarc-${{ matrix.distro }}.list -o /etc/ros/rosdep/sources.list.d/50-smarc.list
sudo apt update
rosdep update
- name: Install deps
run: |
ls
rosdep install --from-path . --ignore-src --rosdistro ${{ matrix.distro }} -y
sudo apt install -y ${{ matrix.bloom }} fakeroot dpkg-dev debhelper zip
- name: Build package
run: |
ls
bloom-release --version
bloom-generate rosdebian --os-name ubuntu --os-version ${{ matrix.ubuntu }} --ros-distro ${{ matrix.distro }}
fakeroot debian/rules binary
mv ../ros-${{ matrix.distro }}-*.deb .
zip bloom-${{ matrix.distro }}-release-deb.zip ros-${{ matrix.distro }}-*.deb
ls
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./bloom-${{ matrix.distro }}-release-deb.zip
asset_name: bloom-${{ matrix.distro }}-release-deb.zip
tag: ${{ github.ref }}
overwrite: true
body: "Debian release generated using bloom"

0 comments on commit 94f0875

Please sign in to comment.