Update build.yml #13
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 | |
on: | |
push: | |
branches: master | |
jobs: | |
ufbt-build-action: | |
runs-on: ubuntu-latest | |
name: "ufbt: Build for dev channel" | |
strategy: | |
matrix: | |
include: | |
- name: OFW release | |
sdk-channel: release | |
- name: Unleashed release | |
sdk-index-url: https://up.unleashedflip.com/directory.json | |
sdk-channel: release | |
- name: Momentum release | |
sdk-index-url: https://up.momentum-fw.dev/firmware/directory.json | |
sdk-channel: release | |
steps: | |
- name: 'ufbt: Build for ${{ matrix.name }}' | |
uses: flipperdevices/[email protected] | |
id: build-app | |
with: | |
# Set to 'release' to build for latest published release version | |
sdk-channel: ${{ matrix.sdk-channel }} | |
sdk-index-url: ${{ matrix.sdk-index-url }} | |
app-dir: flipper-hero | |
- name: Get commit message | |
run: echo "COMMIT_MESSAGE=$(git log --format=%B -n 1 ${{ github.event.after }})" >> $GITHUB_ENV | |
- name: Upload app artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.name }} | |
path: ${{ steps.build-app.outputs.fap-artifacts }} | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
name: ${{ env.COMMIT_MESSAGE }} | |
token: ${{ secrets.MY_GITHUB_TOKEN }} | |
files: ${{ steps.build-app.outputs.fap-artifacts }} | |
generate_release_notes: true | |