Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsbore authored Dec 27, 2020
1 parent 4d778d4 commit 65d3412
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: release-deb

on:
push:
tags:
- '*'

jobs:
release_build:
runs-on: ubuntu-latest
container:
image: rostooling/setup-ros-docker:ubuntu-bionic-ros-melodic-ros-base-latest
steps:
- uses: actions/checkout@v2
with:
path: '.'
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install deps
run: |
ls
rosdep update
rosdep install --from-path . --ignore-src --rosdistro melodic -y
sudo apt install -y python-bloom fakeroot dpkg-dev debhelper zip
- name: Build package
run: |
ls
bloom-release --version
bloom-generate rosdebian --os-name ubuntu --os-version bionic --ros-distro melodic
fakeroot debian/rules binary
mv ../ros-melodic-*.deb .
zip bloom-release-deb.zip ros-melodic-*.deb
ls
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./bloom-release-deb.zip
asset_name: bloom-release-deb.zip
tag: ${{ github.ref }}
overwrite: true
body: "Debian release generated using bloom"

0 comments on commit 65d3412

Please sign in to comment.