From 65d3412f35298f1066a70fa520635db02497dad2 Mon Sep 17 00:00:00 2001 From: Nils Bore Date: Sun, 27 Dec 2020 20:36:54 +0100 Subject: [PATCH] Create release.yml --- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..cdfd438 --- /dev/null +++ b/.github/workflows/release.yml @@ -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"