added rosbot 3 #15
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: Build deb packages | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set env | |
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Create output dir | |
run: mkdir output | |
- name: Build base docker | |
run: docker build -t husarion-motod-builder . | |
- name: Build deb package in docker | |
run: > | |
docker container run --rm | |
-e VERSION=${{ env.RELEASE_VERSION }} | |
-v ${{ github.workspace }}/output:/output | |
husarion-motod-builder | |
./build_platforms.py | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "output/*.deb" | |
artifactErrorsFailBuild: true | |
allowUpdates: true | |
tag: ${{ env.RELEASE_VERSION }} | |