Build-Release #42
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-Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
# build-docker: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Docker login | |
# uses: docker/login-action@v1 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_USERNAME }} | |
# password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
# - name: Checkout repository | |
# uses: actions/checkout@v2 | |
# - name: Build the Docker image | |
# run: docker build -f Dockerfile -t ${{ secrets.DOCKERHUB_USERNAME }}/ros2pio:humble . | |
# - name: Docker image push | |
# run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/ros2pio:humble | |
build-image: | |
runs-on: ubuntu-latest | |
# needs: build-docker | |
container: fishros2/ros2pio:humble | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build firmware | |
run: /bin/bash release.sh | |
- name: Compress .pio directory | |
run: | | |
cd .pio/libdeps/featheresp32/micro_ros_platformio/ | |
zip -r libmicroros libmicroros | |
- name: Create Release and Upload Release Asset | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
tag_name: ${{ github.ref_name }} | |
name: ${{ github.ref_name }} | |
body_path: release-notes.md | |
token: ${{ secrets.ACCESS_TOKEN }} | |
draft: false | |
prerelease: false | |
files: | | |
./bin/* | |
.pio/libdeps/featheresp32/micro_ros_platformio/libmicroros.zip |