Skip to content

add single workflow at the same time #9

add single workflow at the same time

add single workflow at the same time #9

Workflow file for this run

name: Generate Firmwares and Release
on:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-release:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure Git committer
run: |
git config --global user.email "github-actions[bot]"
git config --global user.name "GitHub Actions Bot"
- name: Build Firmwares
run: |
chmod +x ./build.sh
./build.sh all
- name: Delete old release assets
uses: mknejp/delete-release-assets@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: latest
- name: Release
uses: softprops/action-gh-release@v1
with:
files: "*.px4"
tag_name: latest
name: Latest Firmwares
draft: false
body: "This is an auto-generated set of our latest firmwares for all our drones"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}