Skip to content

10.10.0

10.10.0 #15

Workflow file for this run

## This is triggered by the publishing of a release, and will build the assets and attach them.
name: On Release
on:
release:
types: [published]
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
with:
debug_build: false
release:
name: Attach Release Artifacts
needs: ci
runs-on: ubuntu-22.04
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Fetch build artifacts
uses: actions/download-artifact@v4
- name: List assets
run: ls -al Betaflight-*/*
- name: Attach assets to release
run: |
set -x
ASSETS=()
for asset in Betaflight-*/*; do
ASSETS+=("$asset")
echo "$asset"
done
TAG_NAME="${GITHUB_REF##*/}"
gh release upload "${TAG_NAME}" "${ASSETS[@]}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}