build-companion-firmwares.yml 888 B

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