build-companion-firmwares.yml 920 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. name: Build Companion Firmwares
  2. permissions:
  3. contents: write
  4. on:
  5. workflow_dispatch:
  6. push:
  7. tags:
  8. - 'companion-*'
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Clone Repo
  14. uses: actions/checkout@v6
  15. - name: Setup Build Environment
  16. uses: ./.github/actions/setup-build-environment
  17. - name: Build Firmwares
  18. env:
  19. FIRMWARE_VERSION: ${{ env.GIT_TAG_VERSION }}
  20. run: /usr/bin/env bash build.sh build-companion-firmwares
  21. - name: Upload Workflow Artifacts
  22. uses: actions/upload-artifact@v7
  23. with:
  24. name: companion-firmwares
  25. path: out
  26. - name: Create Release
  27. uses: softprops/action-gh-release@v3
  28. if: startsWith(github.ref, 'refs/tags/')
  29. with:
  30. name: Companion Firmware ${{ env.GIT_TAG_VERSION }}
  31. body: ""
  32. draft: true
  33. files: out/*