From 0150732757c7f1e37ebc0557b3cc9916ca8cdec2 Mon Sep 17 00:00:00 2001 From: Struan Clark Date: Sun, 12 Mar 2023 23:19:02 -0600 Subject: [PATCH] CI updates --- .github/workflows/build.yml | 6 ++--- .github/workflows/release.yml | 42 +++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60bd84b58b6..27c32f17042 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,6 @@ on: branches: - main - develop - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' env: firmware_version: '0.78.1' @@ -22,9 +20,9 @@ jobs: repository: 'flipperdevices/flipperzero-firmware' ref: ${{ env.firmware_version }} submodules: true - - name: Checkout + - name: Checkout FlipBIP uses: actions/checkout@v3 with: path: 'applications_user/FlipBIP' - - name: Build + - name: Build FAPs run: ./fbt COMPACT=1 DEBUG=0 faps \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000000..8eff6329665 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,42 @@ +name: Release + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' + +env: + firmware_version: '0.78.1' + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Flipper Zero Firmware + uses: actions/checkout@v3 + with: + repository: 'flipperdevices/flipperzero-firmware' + ref: ${{ env.firmware_version }} + submodules: true + - name: Checkout FlipBIP + uses: actions/checkout@v3 + with: + path: 'applications_user/FlipBIP' + - name: Build FAPs + run: ./fbt COMPACT=1 DEBUG=0 faps + - name: Get tag + id: tag + uses: dawidd6/action-get-tag@v1 + with: + strip_v: false + - name: Publish FlipBIP + uses: softprops/action-gh-release@v1 + with: + files: | + build/f7-firmware-C/.extapps/FlipBIP.fap + applications_user/FlipBIP/README.md + name: ${{steps.tag.outputs.tag}} + body: Built against Flipper Zero firmware v${{ env.firmware_version }} + generate_release_notes: true + fail_on_unmatched_files: true \ No newline at end of file